import { defineConfig, mergeConfig } from 'vitest/config';
import baseConfig from './vite.config';

export default mergeConfig(baseConfig, defineConfig({
    test: {
        environment: 'jsdom',
        fileParallelism: false,
        testTimeout: 60_000,
        hookTimeout: 60_000,
        setupFiles: ['./src/test/setup.ts'],
        include: ['src/**/*.test.ts', 'src/**/*.test.tsx'],
        coverage: {
            include: ['src/**/*.{ts,tsx}'],
            exclude: ['src/main.tsx', 'src/vite-env.d.ts'],
            thresholds: {
                lines: 0,
                statements: 0,
                functions: 0,
                branches: 0
            }
        }
    }
}));
