Run npm run build
to build the project.
It uses tsc
directly with a production configuration.
Jest is used as a testing framework, with the help of ts-jest to allow writing tests in TypeScript directly.
To run the tests:
npm run ut
will run the unit tests oncenpm run ut:watch
will run unit tests in watch modenpm run ut:coverage
will run unit tests once with coverage report (console and files undercoverage
folder)
All files matching *.spec.ts
under src/
or deeper will be executed as tests.
To run the tests, execute npm run e2e
. It runs on the built code, so this command also does a build beforehand.
A custom solution has been implemented to create, setup and run the end-to-end tests. This is due to the complexity of the use case, involving several different actors (backends, proxy, client).
Behind this, Mocha is used to run the process and therefore the tests, and Chai is used to perform the assertions.
For now, playwright is used to manipulate a headless Chrome as a client to make the requests and gather the responses.
The project follows semantic versioning.