2025-08-04 15:48:18 +02:00
|
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
|
import react from "@vitejs/plugin-react"
|
|
|
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
2025-08-04 15:18:06 +02:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [tsconfigPaths(), react()],
|
|
|
|
|
test: {
|
2025-08-04 15:48:18 +02:00
|
|
|
environment: "jsdom",
|
|
|
|
|
setupFiles: "./vitest.setup.ts",
|
2025-08-04 15:18:06 +02:00
|
|
|
globals: true,
|
2025-08-04 15:48:18 +02:00
|
|
|
include: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}"],
|
|
|
|
|
exclude: ["**/node_modules/**", "**/dist/**", "**/e2e/**", ".next/**"],
|
2025-08-04 15:18:06 +02:00
|
|
|
},
|
2025-08-04 15:48:18 +02:00
|
|
|
})
|