This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps/web/vitest.config.ts
T
Flea Flicker 627bb8dfed fix(vitest): exclude node_modules and type tests from test discovery
Vitest was running type-checking tests from @testing-library/jest-dom
in node_modules, causing import resolution failures.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-31 21:43:06 +00:00

22 lines
509 B
TypeScript

import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
setupFiles: ["./src/test/setup.ts"],
globals: true,
exclude: ["e2e/**", "**/node_modules/**", "**/types/__tests__/**"],
coverage: {
provider: "v8",
include: ["src/**"],
exclude: ["src/test/**", "src/main.tsx"],
thresholds: {
lines: 50,
functions: 50,
},
},
},
});