18 lines
508 B
TypeScript
18 lines
508 B
TypeScript
|
/// <reference types="vitest" />
|
||
|
/// <reference types="vite/client" />
|
||
|
|
||
|
import { defineConfig } from "vite";
|
||
|
import react from "@vitejs/plugin-react";
|
||
|
import tsconfigPaths from "vite-tsconfig-paths";
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [react(), tsconfigPaths()],
|
||
|
test: {
|
||
|
globals: true,
|
||
|
environment: "happy-dom",
|
||
|
setupFiles: ["./test/setup-test-env.ts"],
|
||
|
include: ["./app/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
|
||
|
watchIgnore: [".*\\/node_modules\\/.*", ".*\\/build\\/.*"],
|
||
|
},
|
||
|
});
|