Skip to content

test(ci): add coverage instrumentation (@vitest/coverage-v8) and a baseline threshold gate #85

Description

@IgorShevchik

Background

Surfaced during the June 2026 multi-angle project audit (QA review).

Problem

There is zero coverage instrumentation:

  • no @vitest/coverage-* dependency in package.json;
  • no coverage block in vitest.config.ts;
  • .github/workflows/ci.yml runs install → dev:prepare → lint → typecheck → vitest run → build → two playground builds on Node 22/ubuntu only — no coverage report, no gate.

With 76 of 178 components currently spec-less (see the coverage-expansion issue) nothing stops coverage from silently eroding further, and the upstream-sync process (#75) leans on the test suite as its main safety net.

Fix

  • Add @vitest/coverage-v8, configure coverage in vitest.config.ts (exclude generated/#build artifacts).
  • Set thresholds at the current baseline (so CI goes red only on regression) and ratchet up over time.
  • Surface the summary in the CI job output; optionally upload the report as an artifact.

Priority: P2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions