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