Testing
How to run and write tests for SilentSuite.
Running Tests
Run all tests across the monorepo:
bash
pnpm testRun tests for a specific app or package:
bash
pnpm test --filter=landing
pnpm test --filter=webType Checking
Run TypeScript type checking across all packages:
bash
pnpm type-checkWriting Tests
- Place test files next to the code they test, using the
.test.tsor.test.tsxsuffix. - Write descriptive test names that explain the expected behaviour.
- Test behaviour, not implementation details.
- Keep tests independent -- each test should be able to run in isolation.
Before Submitting a PR
Make sure all checks pass:
bash
pnpm lint
pnpm type-check
pnpm test
pnpm buildCI will run these checks automatically on your pull request.