Skip to content

[P2] npm run test:coverage is broken — @vitest/coverage-v8 missing #762

Description

@itsmiso-ai

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:coverageMISSING 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditAudit, review, or investigation work.priority/p2Normal priority.status/readyReady for Dispatch worker pickup.type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions