import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; import path from 'path'; /** * Performance test configuration * Run with: npx vitest run --config vitest.performance.config.mts */ export default defineConfig({ plugins: [react()], test: { globals: true, environment: 'jsdom', setupFiles: ['./src/__tests__/setup.ts'], // Only include performance tests include: ['src/__tests__/performance/**/*.{test,spec}.{ts,tsx}'], exclude: [ 'node_modules', 'dist', 'release', ], testTimeout: 30000, // Longer timeout for performance tests hookTimeout: 10000, teardownTimeout: 5000, }, resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, });