You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coverage floors: add per-file thresholds for critical modules and tools #302
The only threshold is an aggregate src/utils/** 90% lines, so recorder.ts (61.8%) and events.ts (70%) pass; src/tools/**, src/index.ts and src/wgcRecorder.ts have no floor.
Where
vitest.config.ts:16-21
.github/workflows/ci.yml:127-152
Impact
Coverage can drop on the most critical files while CI stays green.
Suggested fix
perFile: true floors for src/utils/{recorder,lifecycle,sessions,events}.ts (raise as the related test issues land)
A src/tools/** line floor at today's measured level
src/index.ts and src/wgcRecorder.ts once they have tests (need NODE_V8_COVERAGE on the child process)
Fixed in 265975b: vitest.config.ts now enforces line floors for src/utils/recorder.ts (58), lifecycle.ts (77), sessions.ts (88), events.ts (66) and src/tools/** (77), about 4 points under a local Windows run. src/index.ts and src/wgcRecorder.ts need child-process coverage, so their floors belong with #295 and #296. Verified: npm run test:coverage passes, and a deliberately high floor fails the run.
Activity
TMHSDigital commentedon Nov 10, 2026
Fixed in 265975b: vitest.config.ts now enforces line floors for src/utils/recorder.ts (58), lifecycle.ts (77), sessions.ts (88), events.ts (66) and src/tools/** (77), about 4 points under a local Windows run. src/index.ts and src/wgcRecorder.ts need child-process coverage, so their floors belong with #295 and #296. Verified:
npm run test:coveragepasses, and a deliberately high floor fails the run.