import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'jsdom', setupFiles: ['./test-setup.ts'], include: ['src/**/*.test.ts'], coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/', 'dist/', '**/*.d.ts', 'test-setup.ts', 'vitest.config.ts', // Framework integrations require separate component testing 'src/react/**', 'src/vue/**', 'src/angular/**', // Re-export index files 'src/index.ts', 'src/core/index.ts', ], thresholds: { statements: 80, branches: 70, functions: 80, lines: 80, }, }, }, });