import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; import path from "node:path"; import { fileURLToPath } from "node:url"; export default defineConfig({ plugins: [react()], test: { environment: "jsdom", globals: true, setupFiles: ["./tests/setup.ts"], include: ["tests/**/*.test.ts", "tests/**/*.test.tsx"], css: false, }, resolve: { alias: { "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "src") } }, });