Unit Testing Considerations
If you choose to include unit tests in your module repo, you can choose a framework such as Vitest, Mocha or Jest. Vitest may be especially useful for its native support of TypeScript. However, unit testing of modules is not very common: We find it quite hard to test most modules as to do so requires mocking-up the device connection.
For TypeScript repos, you may need to add information to compilerOptions": {"types": [] }.
If you have any suggestions on mocks, tooling or examples we should provide to make this easier, we are open to suggestions!
Some modules which are known to have some unit tests:
Feel free to add yours here.