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/utils/**/*.{ts,tsx}', 'src/services/**/*.{ts,tsx}', 'src/constants/**/*.{ts,tsx}', 'src/components/common/**/*.{ts,tsx}', ], thresholds: { lines: 95, functions: 95, branches: 90, statements: 95, }, }, }, });