All tests in this repository are stored in /test
folder. There are unit and
functional tests. All test suits can be executed by following command.
$ npm run test
Run without starting the broker client or server, access network connections. Can be relied upon to always run locally.
$ npm run test:unit
Tests that run with broker client and server locally.
$ npm run test:functional
All new tests should be written in TypeScript. This will help ensure we catch smaller issues in tests that could cause flakey or incorrect tests.
- when writing functional tests ensure you use setup methods for broker client or broker server
- if you need an additional endpoint in test web server to mimic SCM functionality, add it to test-web-server.ts