Files
teamai-cli/vitest.config.ts
T
jeffandCursor dadb7dd065 fix(test): bump vitest default timeout to 15s for CI stability (#150)
CI workers can be resource-constrained under parallel test load, which
caused otherwise-fast unit tests to sporadically exceed vitest's 5s
default timeout (e.g. agent-skills, ci-extract-mr, import-dir suites),
observed on the internal Coding CI runner.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 17:50:08 +08:00

18 lines
534 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['src/__tests__/**/*.test.ts'],
exclude: ['src/__tests__/e2e/**', 'src/__tests__/*-e2e.test.ts'],
// CI workers can be resource-constrained under parallel load, which made
// otherwise-fast tests sporadically exceed vitest's 5s default timeout.
testTimeout: 15000,
hookTimeout: 15000,
coverage: {
provider: 'v8',
reporter: ['cobertura', 'text'],
reportsDirectory: 'coverage',
},
},
});