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