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
feat(coverage): report src/ directory coverage to exclude external bundles
Update coverage reporting to use src/ directory coverage instead of
"All files" coverage. This ensures that external bundled dependencies
in dist/external/ (38 packages, 36MB) are properly excluded from
coverage metrics.
Changes:
- Updated .config/vitest.config.mts to explicitly exclude dist/external/**
- Modified scripts/cover.mjs to extract and report src/ directory
coverage instead of "All files" coverage
- Regex patterns now match " src " directory line from vitest output
Impact:
- Type Coverage: 97.68% (unchanged)
- Code Coverage: 68.17% (was incorrectly reported as 36.79%)
- Cumulative: 82.93% (exceeds 70% target)
The previous 36.79% figure included dist/external bundles which pulled
down the average. The actual src/ code coverage has always been 68.17%,
now correctly reported.
0 commit comments