Skip to content

Testing policy

LeChatErrant edited this page Mar 20, 2021 · 1 revision

Integration tests

Application routes are tested with jest and supertest

  1. Launch database and redis (npm run dev:db && npm run dev:redis)
  2. Launch tests npm run integration

Integration tests

Code coverage is displayed at the end to make sure the application is truly tested

TDD

If you are familiar with TDD (Test Driven Development), you can try npm run integration:watch

It will launch jest watcher, continuously launching tests as you code, and displaying a nice CLI to have more control over the test suite

TDD

Unit tests

Coming soon

Clone this wiki locally