Files
bknd/app/vitest.config.ts
T
2025-03-28 15:17:04 +01:00

24 lines
595 B
TypeScript

import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./src/test/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
exclude: [
"node_modules/",
"src/test/setup.ts",
"**/*.d.ts",
"**/*.test.ts",
"**/*.config.ts",
],
},
},
});