Files
FastGPT/projects/code-sandbox/vitest.config.ts
T
Archer cc3a91d009 Opensandbox (#6657)
* Opensandbox (#6651)

* volumn manager

* feat: opensandbox volumn

* perf: action (#6654)

* perf: action

* doc

* doc

* deploy tml

* update template
2026-03-26 18:25:57 +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'
}
}
});