import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [tsconfigPaths(), react()], test: { environment: "jsdom", setupFiles: ["./vitest.setup.ts"], include: ["tests/int/**/*.int.spec.ts"], // Serial test files: every spec shares one test database, and parallel // workers against it produced flaky cross-file interference. fileParallelism: false, globalSetup: ["./tests/vitest-global.ts"], globalTeardown: ["./tests/vitest-teardown.ts"], }, });