627bb8dfed
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>
22 lines
509 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|