Skip to content

Commit 8a17b27

Browse files
committed
fix(test): narrow coverage include to src/ trees to exclude e2e and config files
The previous glob `packages/**/*.{ts,tsx}` swept in Playwright e2e specs, Playwright/Vite config files, and other non-unit-tested support files, which could cause coverage threshold failures unrelated to source changes. Narrowed to `packages/*/src/**/*.{ts,tsx}` so only package source trees are measured; e2e/, playwright.config.ts, vite.config.ts etc. are excluded by default rather than needing manual entries in the exclude list. https://claude.ai/code/session_013coUXcACPpVfmbK9i2D86Z
1 parent 163a529 commit 8a17b27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/vitest.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export default defineConfig({
3232
coverage: {
3333
provider: 'v8',
3434
// Measure all source files, not just those touched by tests.
35-
include: ['packages/**/*.{ts,tsx}'],
35+
// Scoped to src/ trees so Playwright e2e files, Vite/Playwright configs,
36+
// and other non-unit-tested support files are excluded by default.
37+
include: ['packages/*/src/**/*.{ts,tsx}'],
3638
exclude: [
3739
'packages/**/*.test.{ts,tsx}',
3840
'packages/**/*.d.ts',

0 commit comments

Comments
 (0)