Automatic Testing - seanmccoyOSU/Interactive-Survey-Tools-For-Data-Visualizations GitHub Wiki
You can use the command npm test
to run automatic tests in the console. It is recommended you include a path to a specific file when you run the command because running all tests at once may be overwhelming. test files can be found in the __tests__/
directory.
Tests do NOT require you to be running any web app modules in order to pass. The only exception are the tests in connection.js
.
Running npm test __tests__/connection.js
will test whether you are correctly running all of the modules needed to run the web application. If you are not running these modules, the tests in this file will fail. This may be helpful if you are having trouble getting the web app to run on your machine.