import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' import { fileURLToPath } from 'node:url' export default defineConfig({ plugins: [react()], test: { globals: true, environment: 'jsdom', setupFiles: ['./src/__tests__/setup.ts'], include: [ 'src/__tests__/**/*.{test,spec}.{js,ts,jsx,tsx}', ], exclude: [ 'node_modules/', 'dist/', 'e2e/**/*.spec.ts', '**/*.d.ts', '**/*.config.*', '**/mockData', ], coverage: { provider: 'v8', reporter: ['text', 'json', 'html', 'lcov'], exclude: [ 'node_modules/', 'src/__tests__/', '**/*.d.ts', '**/*.config.*', '**/mockData', 'e2e/', ], lines: 80, functions: 80, branches: 80, statements: 80, }, }, resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, })