import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], test: { environment: 'jsdom', globals: true, setupFiles: ['./tests/unit/setup.ts'], include: ['tests/unit/**/*.test.{ts,tsx}'], coverage: { provider: 'v8', reporter: ['text', 'html', 'lcov'], reportsDirectory: './coverage', include: ['src/**/*.{ts,tsx}'], exclude: ['src/main.tsx', 'src/types/**'], thresholds: { lines: 84, functions: 84, branches: 70, statements: 80, }, }, }, });