-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvitest.config.ts
More file actions
40 lines (38 loc) · 1.06 KB
/
vitest.config.ts
File metadata and controls
40 lines (38 loc) · 1.06 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
import { defineConfig } from 'vitest/config'
import dotenv from 'dotenv'
import path from 'node:path'
dotenv.config({ quiet: true, path: path.resolve(__dirname, '.env.test') })
export default defineConfig({
test: {
globals: true,
silent: false,
// reporters: [['tree', { summary: false }]],
projects: [
{
extends: true,
test: {
name: 'jsSdk:integration',
environment: 'node',
testTimeout: 30_000,
hookTimeout: 30_000,
include: ['./test/integration/**/*.spec.ts'],
setupFiles: ['./test/0_setup/setup-integration-jssdk.ts']
}
},
{
extends: true,
test: {
name: 'jsSdk:underLoad',
environment: 'node',
maxConcurrency: 10,
testTimeout: 2400_000, // 40 min
hookTimeout: 2400_000,
fileParallelism: false,
sequence: { shuffle: false },
include: ['./test/under-load/**.spec.ts'],
setupFiles: ['./test/0_setup/setup-under-load-jssdk.ts']
}
}
]
}
})