Ask: Add the @vitest/coverage-v8 devDependency and wire a coverage gate into CI so the coverage script stops failing.
Expected files: package.json, vitest.config.ts, .github/workflows/ci.yaml
Problem: package.json ships a test:coverage script but the coverage provider is not installed, so the script dies immediately with MISSING DEPENDENCY. CI runs only npm run test (no coverage), so coverage is never measured and the broken script decays silently instead of being caught.
Evidence:
npm run test:coverage → MISSING DEPENDENCY Cannot find dependency '@vitest/coverage-v8' (reproduced 2026-08-12)
package.json: "test:coverage": "NODE_ENV=development vitest run --coverage"; @vitest/coverage-v8 absent from devDependencies
.github/workflows/ci.yaml test job runs npm run test only — no coverage job, no coverage threshold
Acceptance:
npm run test:coverage completes and emits a coverage report
@vitest/coverage-v8 is listed in devDependencies
- CI runs coverage on every push/PR, or the script is removed if coverage is intentionally not tracked (state which)
Ask: Add the @vitest/coverage-v8 devDependency and wire a coverage gate into CI so the coverage script stops failing.
Expected files: package.json, vitest.config.ts, .github/workflows/ci.yaml
Problem:
package.jsonships atest:coveragescript but the coverage provider is not installed, so the script dies immediately withMISSING DEPENDENCY. CI runs onlynpm run test(no coverage), so coverage is never measured and the broken script decays silently instead of being caught.Evidence:
npm run test:coverage→MISSING DEPENDENCY Cannot find dependency '@vitest/coverage-v8'(reproduced 2026-08-12)package.json:"test:coverage": "NODE_ENV=development vitest run --coverage";@vitest/coverage-v8absent fromdevDependencies.github/workflows/ci.yamltest job runsnpm run testonly — no coverage job, no coverage thresholdAcceptance:
npm run test:coveragecompletes and emits a coverage report@vitest/coverage-v8is listed indevDependencies