Skip to content

Commit a3d4216

Browse files
feat(verify): add coverage enforcement to verify skill (#3304)
* feat(verify): add coverage enforcement to verify skill * fix(verify): use --testPathPatterns (plural) matching jest config
1 parent 1a10722 commit a3d4216

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.claude/skills/verify/SKILL.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ description: Run quality loop (audit + lint + tests) to verify code quality, cor
2323

2424
2. **Lint**`npm run lint`
2525

26-
3. **Tests** — check if MongoDB is reachable:
27-
- **Infra up**`npm run test:all` (unit + integration + E2E)
28-
- **Infra down**`npm test` (unit only) + warn: "Integration/E2E skipped — run `docker compose -f docker-compose.test.yml up -d` for full coverage"
26+
3. **Tests + coverage** — check if MongoDB is reachable:
27+
- **Infra up**`npm run test:coverage` (all tests + coverage enforcement)
28+
- **Infra down**`npm run test:coverage -- --testPathPatterns='unit'` (unit only + coverage) + warn: "Integration/E2E skipped — run `docker compose -f docker-compose.test.yml up -d` for full coverage"
29+
- If coverage drops below thresholds (jest.config.js) → fail. Add tests, never lower thresholds.
2930

3031
4. **Summary:** ✅ All passed → ready to commit | ❌ Failed → show failures, fix, re-run

0 commit comments

Comments
 (0)