mirror of
https://github.com/duhanbalci/iyzico.git
synced 2026-03-03 12:29:16 +00:00
32 lines
749 B
TypeScript
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',
|
|
],
|
|
},
|
|
},
|
|
});
|
|
|