diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 8f3df7b6..722a0d89 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -46,9 +46,17 @@ export default defineConfig({ coverage: { provider: 'v8', reporter: ['text', 'lcov'], - // Measure utility and server-side logic only — Svelte components - // run in the browser project and are excluded here intentionally. - include: ['src/lib/shared/**', 'src/lib/document/**', 'src/lib/person/**'], + // Measure utility and server-side logic only. Svelte components run + // in the browser project and are excluded here. Browser-only TS files + // (actions, hooks, domain-specific UI state) are also excluded. + // person/ is excluded until relationshipLabels.ts coverage is raised. + include: [ + 'src/lib/shared/utils/**', + 'src/lib/shared/server/**', + 'src/lib/shared/discussion/**', + 'src/lib/document/**' + ], + exclude: ['**/*.svelte', '**/*.svelte.ts', '**/__mocks__/**'], thresholds: { branches: 80 }