14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
import react from "@vitejs/plugin-react"
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths(), react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: "./vitest.setup.ts",
|
|
globals: true,
|
|
include: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}"],
|
|
exclude: ["**/node_modules/**", "**/dist/**", "**/e2e/**", ".next/**"],
|
|
},
|
|
})
|