import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' import path from 'path' export default defineConfig({ plugins: [react()], test: { environment: 'jsdom', setupFiles: ['./tests/setup.ts'], globals: true, css: true, coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/', 'tests/', '**/*.d.ts', '**/*.config.*', 'coverage/', 'dist/', '.next/' ], thresholds: { global: { branches: 75, functions: 85, lines: 80, statements: 80 } } } }, resolve: { alias: { '@': path.resolve(__dirname, './') } } })