forked from labring/FastGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
29 lines (29 loc) · 825 Bytes
/
vitest.config.mts
File metadata and controls
29 lines (29 loc) · 825 Bytes
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
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
enabled: true,
reporter: ['html', 'json-summary', 'json'],
reportOnFailure: true,
include: ['projects/**/*.ts', 'packages/**/*.ts'],
cleanOnRerun: false
},
outputFile: 'test-results.json',
setupFiles: 'test/setup.ts',
globalSetup: 'test/globalSetup.ts',
// fileParallelism: false,
maxConcurrency: 5,
pool: 'threads',
include: ['test/test.ts', 'test/cases/**/*.test.ts', 'projects/app/test/**/*.test.ts'],
testTimeout: 20000,
reporters: ['github-actions', 'default']
},
resolve: {
alias: {
'@': resolve('projects/app/src'),
'@fastgpt': resolve('packages'),
'@test': resolve('test')
}
}
});