-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
38 lines (36 loc) · 1.07 KB
/
vitest.config.ts
File metadata and controls
38 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Author: Claude Code using Sonnet 4
* Date: 2025-09-28 14:30:00
* PURPOSE: Vitest configuration for health check test suite with proper ES modules support
* SRP and DRY check: Pass - Single responsibility for test configuration
* shadcn/ui: Pass - No UI components needed in test configuration
*/
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
testTimeout: 660000, // 11 minutes to allow for 10-minute model timeouts plus buffer
hookTimeout: 30000,
teardownTimeout: 30000,
globals: true,
environment: 'node',
setupFiles: [],
include: ['tests/**/*.test.ts'],
exclude: ['node_modules/**', 'dist/**'],
reporters: ['verbose', 'json'],
outputFile: {
json: './reports/test-results.json'
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
'@shared': path.resolve(__dirname, './shared'),
'@server': path.resolve(__dirname, './server'),
'@client': path.resolve(__dirname, './client/src')
}
},
esbuild: {
target: 'node18'
}
});