-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.performance.config.js
More file actions
41 lines (31 loc) · 1 KB
/
vitest.performance.config.js
File metadata and controls
41 lines (31 loc) · 1 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
39
40
41
import { defineConfig } from 'vitest/config'
import { getTestConfig } from './tests/suites.config.js'
const suiteConfig = getTestConfig('performance')
export default defineConfig({
test: {
// Test environment
environment: 'node',
// Test file patterns - performance tests only
include: suiteConfig.test.include,
exclude: suiteConfig.test.exclude,
// Extended timeout for performance tests
testTimeout: suiteConfig.test.testTimeout,
hookTimeout: 300000, // 5 minutes
// Coverage configuration (usually not needed for performance tests)
coverage: {
enabled: false
},
// Mock configuration
clearMocks: true,
restoreMocks: true,
// Sequential execution for accurate performance measurements
pool: 'forks',
singleFork: true,
// Reporter configuration
reporters: ['verbose'],
// Environment variables
env: suiteConfig.test.env,
// Setup files
setupFiles: suiteConfig.test.setupFiles
}
})