import { defineConfig } from "vitest/config"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], test: { environment: "jsdom", globals: true, setupFiles: ["./src/test-setup.ts"], css: false, coverage: { provider: "v8", reporter: ["text", "html", "lcov"], include: ["src/**/*.{ts,tsx}"], exclude: ["src/**/*.stories.{ts,tsx}", "src/test-setup.ts"], thresholds: { lines: 60, functions: 60, branches: 60, statements: 60, }, }, }, });