Files
iyzico/vitest.config.ts
Duhan BALCI c65195d26d init
2026-01-01 18:30:21 +03:00

32 lines
749 B
TypeScript

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',
],
},
},
});