import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; import { resolve } from "path"; export default defineConfig({ plugins: [react()], define: { /** Stub app version for tests — mirrors the vite.config.ts define. */ __APP_VERSION__: JSON.stringify("0.0.0-test"), }, resolve: { alias: { "@": resolve(__dirname, "src"), }, }, test: { environment: "jsdom", globals: false, setupFiles: ["./src/setupTests.ts"], }, });