import react from "@vitejs/plugin-react"; import { defineProject } from "vitest/config"; export default defineProject({ plugins: [react()], // Stand-ins for the build-time version and commit (see vite.config.ts). define: { __APP_VERSION__: JSON.stringify("0.0.0-test"), __APP_BUILD__: JSON.stringify("test") }, test: { environment: "jsdom", setupFiles: ["./test/setup.ts"], }, });