This codebase uses jest for unit testing.
Testing of our endpoints is done on the CMS codebase but to test the behaviour all handlers manipulating data being passed to and received from these endpoints we create jest unit tests.
These should be organised as seen below:
| src
|__ background
|____ messages
|______ handler.ts
|______ handler.test.ts
To run all tests
pnpm test
To run any tests associated with files changed since the last commit:
pnpm test:changed