mirror of
https://github.com/Tencent/teamai-cli.git
synced 2026-10-02 03:14:40 +08:00
22 lines
711 B
TypeScript
22 lines
711 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: [
|
|
'src/__tests__/e2e/**/*.test.ts',
|
|
'src/__tests__/*-e2e.test.ts',
|
|
'validation/*.test.ts',
|
|
],
|
|
setupFiles: ['src/__tests__/helpers/clear-agent-session-env.ts'],
|
|
testTimeout: 60_000,
|
|
hookTimeout: 30_000,
|
|
// E2E tests spawn child processes and touch the real filesystem.
|
|
// Run test files sequentially to avoid race conditions (parallel
|
|
// file-level execution causes intermittent "Cannot find module
|
|
// dist/index.js" on GitHub Actions CI runners).
|
|
fileParallelism: false,
|
|
// Retry once: flaky tests recover, real bugs stay failed.
|
|
retry: 1,
|
|
},
|
|
});
|