import react from "@vitejs/plugin-react"; import { configDefaults, defineConfig } from "vitest/config"; export default defineConfig({ plugins: [react()], server: { proxy: { "/api": { target: "http://127.0.0.1:8080", changeOrigin: true, }, }, }, test: { environment: "node", // Playwright specs run against the Compose stand, not in Vitest. exclude: [...configDefaults.exclude, "e2e/**"], restoreMocks: true, }, });