Agent skill

vitest-react-ts-coverage-enforce

Configure and enforce 100% coverage in Vitest for a React-TS project (include uncovered files, set thresholds=100 globally and per-file, choose provider v8/istanbul, add HTML report and CI-friendly scripts).

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/vitest-react-ts-coverage-enforce

SKILL.md

Enforce 100% Coverage (Vitest)

You are ensuring coverage enforcement is strict and fails builds when anything drops below 100%.

Non-negotiables

  1. Include source files in coverage even if not imported by tests.
  2. Set thresholds to 100 for lines/functions/branches/statements.
  3. Enable per-file thresholds to prevent a single file being under-tested.
  4. Keep exclusions minimal and justified (types, stories, test utilities, entrypoints).

Use template.md as the default structure.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results