On Substrate Starterkit, we do both unit testing and integration testing.
All tests are located under /src/tests where next pattern is followed for naming:
/src/tests
Unit tests: classToTest.unit.test.ts
classToTest.unit.test.ts
Integration tests: classToTest.int.test.ts
classToTest.int.test.ts
To run the tests, we have a few commands enabled:
Running the integration tests:
yarn test:integration
Running unit tests:
yarn test:unit
Running all tests concurrently
yarn test
Last updated 2 years ago