mirror of
https://github.com/Tencent/teamai-cli.git
synced 2026-10-02 03:14:40 +08:00
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>
18 lines
534 B
TypeScript
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',
|
|
},
|
|
},
|
|
});
|