ci: add test coverage reporting with Vitest - #36
Conversation
Verification ReportVerdict: ✅ PASS Method: Ran Steps
Coverage output (local)
Finding
|
Installs @vitest/coverage-v8 and configures coverage in vitest.config.ts. Adds a test:coverage script and updates CI to generate and upload the HTML coverage report as a workflow artifact on every run. Closes #35 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
683460d to
cfb99a5
Compare
|
@pavanvamsi3 The merge conflicts have been resolved — rebased onto main, keeping the |
Summary
@vitest/coverage-v8as a dev dependencyvitest.config.tswithtext,json, andhtmlreportersnpm run test:coveragescript topackage.json.github/workflows/ci.ymlto generate coverage on every CI run and upload the HTML report as a downloadable artifact (Node 20.x, retained 7 days)Closes #35
Coverage output (local run)
This immediately surfaces gaps — notably
sessions.tsat 0.2% coverage — giving contributors clear targets for future test improvements.Test plan
npm run test:coverageruns locally — 7 files, 114 tests, coverage report generated incoverage/🤖 Generated with Claude Code