Testing
Types of tests
On Substrate Starterkit, we do both unit testing and integration testing.
Naming and Location
All tests are located under /src/tests where next pattern is followed for naming:
Unit tests:
classToTest.unit.test.tsIntegration tests:
classToTest.int.test.ts
Running the tests
To run the tests, we have a few commands enabled:
Running the integration tests:
yarn test:integrationRunning unit tests:
yarn test:unitRunning all tests concurrently
yarn testLast updated