The coverage script parses "All files" from vitest text table output, but vitest was only configured with json-summary reporter. This caused frontend coverage to show as 0%, pulling overall coverage below threshold. Frontend line coverage is 68.4%, making overall coverage 66.4% vs 64.60% threshold. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
436 B
TypeScript
19 lines
436 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/setupTests.ts"],
|
|
css: true,
|
|
exclude: ["tests/e2e/**", "node_modules/**"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json-summary"],
|
|
reportsDirectory: "./coverage",
|
|
},
|
|
},
|
|
});
|