In order to start the example
npm start
If you want to re-run as you save a file
npm run start:watch
npm run build
npm publish
All tests are located inside the src/test
folder.
npm test
The file src/example/setup.js
runs before the tests,
it starts the server and initializes the db
and src/example/teardown.js
is run after for teardown.
if src/example/teardown.js
somehow does not run, you'll have to kill the dev server node
process manually.
First run the development server:
npm run start:watch
then seperately run the test file:
node --require=ts-node/register src/test/example/kamand.test.ts
- Create files
src/setup.js
,src/teardown.js
using the example - Add
test
in the scripts section in thepackage.json
file. - Add tests in the
test
folder using the example test.
we can use postgres-migrations for database migration