test-coverage
Installation
SKILL.md
Maintain test coverage thresholds
Coverage thresholds prevent code quality from degrading over time by failing builds when test coverage drops below safe levels.
Quick Reference
- Set global thresholds: 70% branches, 80% lines/functions/statements
- Apply stricter thresholds (90%+) to critical utility code
- Exclude generated code, type definitions, and config files
- Focus on meaningful coverage—test behavior, not just lines
Check
Review this project's test coverage configuration to ensure minimum thresholds are set and enforced in CI/CD.
Fix
Configure coverage thresholds in Jest, Vitest, or your testing framework, and add coverage checks to CI/CD.