We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Set up your test database by running nodal db:create --env test and NODE_ENV=test nodal db:bootstrap --env test.
nodal db:create --env test
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.
config/seed.json
You'll need to re-run NODE_ENV=test nodal db:seed every time update the seed file to re-seed the database.
NODE_ENV=test nodal db:seed
There are example tests in the test/tests directory.
test/tests
Run tests with npm run test.
npm run test
There was an error while loading. Please reload this page.