The codebase now has a test for the Resources API- it's in test/routes/api/resources.js.
To run tests, log in to a running server container and perform these set up steps:
$ sequelize db:create --env=test
$ sequelize db:migrate --env=test
These commands create and migrate the TEST database. Then, to run ALL the tests, you can run:
To run a specific test file, you can specify it as an argument to the mocha test runner command:
$ mocha test/routes/api/resources.js
The codebase now has a test for the Resources API- it's in
test/routes/api/resources.js.To run tests, log in to a running server container and perform these set up steps:
These commands create and migrate the TEST database. Then, to run ALL the tests, you can run:
To run a specific test file, you can specify it as an argument to the mocha test runner command: