import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], test: { environment: 'jsdom', globals: true, setupFiles: ['./tests/setup.ts'], // tests/e2e est exclusivement pilote par Playwright (test:e2e), jamais par Vitest. exclude: ['**/node_modules/**', 'tests/e2e/**'], coverage: { provider: 'v8', reporter: ['text', 'lcov', 'html'], thresholds: { lines: 80, functions: 80, branches: 75, statements: 80 }, include: ['src/**/*.{ts,tsx}'], exclude: [ 'node_modules', 'tests', '*.config.*', 'src/main/index.ts', 'src/preload/**', 'src/renderer/src/main.tsx', '**/*.d.ts' ] } } })