File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ Programmatic access to Socket.dev's security analysis capabilities.
7575- ** Test single file** : ✅ CORRECT: ` pnpm test path/to/file.test.ts `
7676 - ❌ WRONG: ` pnpm test -- path/to/file.test.ts `
7777- ** Update snapshots** : ` pnpm test -u `
78+ - ** 🚨 MANDATORY Coverage Requirements** : Before pushing commits, ensure test coverage is maintained or improved
79+ - ** Never decrease coverage** : All changes MUST maintain or increase existing coverage percentages
80+ - ** Check before push** : Run ` pnpm run test ` to verify coverage thresholds are met
81+ - ** Fix coverage drops** : If coverage decreases, add tests to restore or improve coverage before pushing
82+ - ** Rationale** : Declining coverage indicates untested code paths, which increases risk of bugs and regressions
7883
7984### Test Naming Standards (Critical for Coverage)
8085- ** File names** : Use descriptive, specific names
You can’t perform that action at this time.
0 commit comments