import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], test: { environment: 'jsdom', globals: true, setupFiles: ['./src/test/setup.js'], include: ['src/**/*.{test,spec}.{js,jsx}', 'tests/**/*.{test,spec}.js'], exclude: ['tests/e2e/**', 'tests/performance/**', 'tests/regression/visual.test.js', 'node_modules/**'], snapshotFormat: { escapeString: true, printBasicPrototype: false, }, coverage: { provider: 'v8', reporter: ['text', 'lcov', 'html'], exclude: [ 'node_modules/', 'tests/', '**/*.test.js', '**/*.config.js' ], lines: 80, functions: 80, branches: 80, statements: 80 }, }, })