import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', include: ['tests/**/*.test.ts'], setupFiles: ['tests/setup.ts'], testTimeout: 30000, // 30 seconds for integration tests // Run tests sequentially to avoid rate limiting pool: 'forks', poolOptions: { forks: { singleFork: true, // Run all tests in a single process sequentially }, }, // Alternative: use threads with maxConcurrency: 1 // maxConcurrency: 1, coverage: { provider: 'v8', reporter: ['text', 'json', 'html'], exclude: [ 'node_modules/', 'dist/', 'tests/', '*.config.ts', ], }, }, });