import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [react(), tsconfigPaths()], test: { environment: "jsdom", globals: true, setupFiles: ["./vitest.setup.ts"], include: ["tests/**/*.test.ts", "tests/**/*.test.tsx"], coverage: { provider: "v8", reporter: ["text", "json", "html"], include: ["app/lib/**/*.ts", "app/lib/**/*.tsx"], exclude: ["app/lib/**/*.server.ts"], }, }, });