npm test # Run all tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage reportRun a specific test file:
npx jest src/utils/foo.test.ts # Run specific test file
npx jest -t "<test-name-pattern>" # Run tests matching patternCoverage thresholds are set to 80% for all metrics (branches, functions, lines, statements). CLI code is excluded from coverage as it's verified through integration tests.
- Test files should be co-located with source files as
**/*.test.ts - Use the path alias
@/which maps tosrc/ - Tests run in Node.js environment using ts-jest preset
- Follow existing test patterns in the codebase