Skip to content

Files

Latest commit

 

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Testing

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

Unit tests

Run without starting the broker client or server, access network connections. Can be relied upon to always run locally.

$ npm run test:unit

Functional tests

Tests that run with broker client and server locally.

$ npm run test:functional

Writing tests

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.

Best practices