test(frontend): add TaskBoard + TaskCard coverage and full coverage config

This commit is contained in:
Abhimanyu Saharan
2026-02-11 22:39:33 +00:00
committed by Abhimanyu Saharan
parent d4f9831ecb
commit 6c897d7faf
4 changed files with 256 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
import path from "node:path";
import { defineConfig } from "vitest/config";
// Broader coverage config used for gap analysis.
// - Does NOT enforce 100% thresholds.
// - Includes most source files (excluding generated artifacts and types).
// Keep the default vitest.config.ts as the scoped coverage gate.
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
environment: "jsdom",
setupFiles: ["./src/setupTests.ts"],
globals: true,
coverage: {
provider: "v8",
reporter: ["text", "lcov"],
reportsDirectory: "./coverage-full",
include: ["src/**/*.{ts,tsx}"],
exclude: [
"**/*.d.ts",
"src/**/__generated__/**",
"src/**/generated/**",
],
thresholds: {
lines: 0,
statements: 0,
functions: 0,
branches: 0,
},
},
},
});