// vitest 4 no longer contributes the `test` key to vite's own defineConfig, so // the config is typed by importing defineConfig from vitest/config instead of // the (now inert) triple-slash reference. import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], server: { port: 5173, }, test: { environment: "jsdom", globals: true, setupFiles: ["./src/test/setup.ts"], coverage: { provider: "v8", include: ["src/**/*.{ts,tsx}"], exclude: ["src/main.tsx", "src/test/**"], thresholds: { statements: 100, branches: 100, functions: 100, lines: 100, }, }, }, });