mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
89b80f75a4
* 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
25 lines
559 B
TypeScript
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'
|
|
}
|
|
}
|
|
});
|