Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 978 Bytes

File metadata and controls

33 lines (23 loc) · 978 Bytes

Code Coverage

We strive for high test coverage to ensure reliability and maintainability.

Generating Reports

To generate a coverage report:

pnpm test --coverage

This will produce a coverage report in the coverage/ directory and output a summary table to the console.

Coverage Targets

Metric Target
Statements > 80%
Branches > 80%
Functions > 80%
Lines > 80%

Note: Critical packages may enforce stricter thresholds (e.g., 95%).

Reviewing Coverage

  • Local: Open coverage/index.html in your browser to inspect line-by-line coverage.
  • CI: Coverage reports are generated during CI builds and may be uploaded to a coverage provider (e.g., Codecov) or stored as artifacts.

Gaps & Exclusions

  • Test Files: Excluded from coverage.
  • Build Artifacts: dist/ and build/ directories are excluded.
  • Configuration: Config files like eslint.config.js may be excluded.