API unit tests are designed to check and verify existing and new implementations with the ARD Eventhub. As test-environment Mocha is used in combination with Chai for a readable chaining of test-arguments.
In addition to the ingest-env, following variables are needed in .env
config for unit tests to work:
- REQUIRED
TEST_USER
- test user email - REQUIRED
TEST_USER_PW
- test user password - OPTIONAL
TEST_USER_RESET
- set true for email reset (request limit)
Follow the ingest-setup first, then run tests with
bun ingest:test