This commit is contained in:
Duhan BALCI
2026-01-01 18:30:21 +03:00
commit c65195d26d
44 changed files with 8715 additions and 0 deletions

31
vitest.config.ts Normal file
View File

@@ -0,0 +1,31 @@
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',
],
},
},
});