Skip to content

Latest commit

 

History

History
 
 

API Server

Tests

Unit tests can be executed with:

$ npm run test

To run E2E (end-to-end) tests, first have these services running local, each with its own dependencies:

  • API server
  • FHIR Server

Set this environment variable on your local .env file with valid API and Webhook keys from your local environment (from the Dash's Developer settings):

$ echo "TEST_API_KEY=XXXXXXXX" >> .env
$ echo "WH_KEY=XXXXXXXX" >> .env

Then execute E2E tests with:

$ npm run test:e2e

To run a specific test/group:

npm run test:e2e -- -t 'MAPI E2E Tests'