Files
deepseek-harness/vitest.bench.config.ts
T

27 lines
899 B
TypeScript

import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config'
import { standardDecoratorPlugin, vitestExecArgv } from './vitest.shared.ts'
/**
* CI performance gate. Vitest orchestrates compiled plain-Node workers under
* `.dsh-build/benchmarks/`; timed product work never runs through its source transform.
* Files run one at a time so a measurement never shares the CPU with another
* benchmark.
*/
export default defineConfig({
plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] }), standardDecoratorPlugin()],
test: {
execArgv: vitestExecArgv,
setupFiles: ['./scripts/test-proxy-environment.ts'],
include: [
'benchmarks/**/*.bench.ts',
'benchmarks/**/*.bench.client.ts',
],
fileParallelism: false,
maxWorkers: 1,
testTimeout: 600_000,
hookTimeout: 120_000,
disableConsoleIntercept: true,
},
})