chore: coverage report via npm run test:coverage

@vitest/coverage-v8 with include over src/ so untested files show up
at 0%; text summary plus the browsable coverage/ HTML (gitignored).
This commit is contained in:
Steffen Becker committed 2026-08-15 23:01:50 +02:00
1 parent 47bbbfc7dd
commit 82993aeda3
5 files changed
+276 -44

No files matched your search

+5
View File
@@ -25,5 +25,10 @@ export default defineConfig({
// A build+re-import leg runs ~10s when the whole suite competes for the CPU,
// well past vitest's 5s default.
testTimeout: 60000,
// `npm run test:coverage` — untested src files appear at 0%, which is the point.
coverage: {
include: ['src/**/*.ts', 'src/**/*.svelte'],
reporter: ['text-summary', 'html'],
},
},
});