Files
FastGPT/projects/sandbox/vitest.config.ts
T
Archer dbc443a770 Fix share (#6554)
* fix: http tool

* fix: http tool

* fix: test

* fix: test

* fix: test

* fix: test
2026-03-13 17:24:15 +08:00

27 lines
665 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
enabled: true,
reporter: ['text', 'text-summary', 'html', 'json-summary', 'json'],
reportOnFailure: true,
all: false, // 只包含被测试实际覆盖的文件,不包含空目录
include: ['src/**/*.ts'],
cleanOnRerun: false
},
root: '.',
include: ['test/**/*.test.ts'],
testTimeout: 30000,
hookTimeout: 30000,
fileParallelism: false,
maxConcurrency: 1,
isolate: false,
env: {
CHECK_INTERNAL_IP: 'true',
SANDBOX_MAX_TIMEOUT: '5000',
SANDBOX_TOKEN: 'test'
}
}
});