Skip to content

Enforce test coverage thresholds#139

Merged
i-afaqrashid merged 1 commit into
mainfrom
issue-134-coverage-thresholds
May 29, 2026
Merged

Enforce test coverage thresholds#139
i-afaqrashid merged 1 commit into
mainfrom
issue-134-coverage-thresholds

Conversation

@i-afaqrashid
Copy link
Copy Markdown
Owner

Summary

Adds V8 coverage to the vitest run and enforces a minimum coverage floor, wired into the test script so both CI (pnpm test) and verify apply it. The dependency (@vitest/coverage-v8) is committed with the lockfile this time.

How verified

  • pnpm test runs coverage and passes at current levels (statements 93.15, branches 87.1, functions 95.62, lines 93.34).
  • Thresholds set below those (statements/lines 90, functions 92, branches 84); confirmed they fail the run when unmet.

Closes #134

Adds V8 coverage to the vitest run and wires it into the test script, so
both CI (pnpm test) and verify enforce a coverage floor. Thresholds sit a
few points below current coverage (statements/lines 90, functions 92,
branches 84) to guard against regressions without being brittle.

Closes #134
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webaudio-kit-site Ready Ready Preview, Comment May 29, 2026 8:48am

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​vitest/​coverage-v8@​4.1.7991007998100

View full report

@i-afaqrashid i-afaqrashid merged commit 67f5871 into main May 29, 2026
12 checks passed
@i-afaqrashid i-afaqrashid deleted the issue-134-coverage-thresholds branch May 29, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce test coverage thresholds in CI

1 participant