Testing workflow
When to use
- •After any code change
- •When adding new validators or features
- •When fixing test failures
Steps
- •Run
npm run typecheckbefore finishing. - •Run
npm testfor unit and integration tests. - •Use
npm test -- -t "pattern"for focused changes. - •For coverage, run
npm test -- --coverage. - •For diff coverage in branch, run
node scripts/check-diff-coverage.js.
Notes
- •New validators require both success and failure tests.
- •E2E tests live in
tests/e2e/.