Skip to content
Mitch Conquer edited this page Apr 14, 2017 · 4 revisions

Setup

Set up your test database by running nodal db:create --env test and NODE_ENV=test nodal db:bootstrap --env test.

You can add seed data to the test db in the config/seed.json file. You can find examples on the Database Seeds page.

You'll need to re-run NODE_ENV=test nodal db:seed every time update the seed file to re-seed the database.

There are example tests in the test/tests directory.

Run Your Tests

Run tests with npm run test.