Files
FastGPT/projects/code-sandbox/vitest.config.ts
T
Archer 89b80f75a4 Perf worker and env load (#6861)
* perf: read file worker

* perf: worker pool

* fix: test

* fix: review

* fix: test

* fix: add helm aes secret env

* fix: align required env configuration

* docs: align env default values

* test: make AES tamper case deterministic

* sandbox default env

* chore: centralize environment configuration

* fix: tighten env ownership and validation

* fix: harden env compatibility

* perf: env

* fix: resolve env ci failures

* perf: env

* perf: env

* remove invalid code

* doc

* doc

* doc

* doc

* perf: axios header get

* fix: test

* fix: i18n
2026-05-06 18:25:24 +08:00

25 lines
559 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
enabled: true,
reporter: ['text', 'text-summary', 'html', 'json-summary', 'json'],
reportOnFailure: true,
include: ['src/**/*.ts'],
cleanOnRerun: false
},
root: '.',
include: ['test/**/*.test.ts'],
testTimeout: 30000,
hookTimeout: 30000,
fileParallelism: true,
isolate: false,
env: {
CHECK_INTERNAL_IP: 'true',
SANDBOX_MAX_TIMEOUT: '5000',
SANDBOX_TOKEN: 'test'
}
}
});