test(#121): add @vitest/coverage-v8 with 80% branch coverage gate
Installs @vitest/coverage-v8 and configures coverage measurement over src/lib/utils/** and src/lib/server/** — the utility and server-side logic that is meaningful to measure in the Node test project. Svelte component files and generated code (api/**, paraglide/**) are excluded; those run in the browser project. Baseline: 87.87% branch coverage — already above the 80% threshold. Adds test:coverage script for local runs; produces lcov report for CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1
frontend/.gitignore
vendored
1
frontend/.gitignore
vendored
@@ -29,3 +29,4 @@ src/lib/paraglide
|
||||
# (committed as a stub; overwritten by the real spec after generation)
|
||||
# src/lib/generated/api.ts
|
||||
src/lib/paraglide_bak*
|
||||
/coverage
|
||||
|
||||
Reference in New Issue
Block a user