test(cli): give doctor-json-cli its child-process budget under the root config (#5023)

Main went red at 795a156dd (#4839): the first doctor-json-cli test cold-starts
tsx in a spawnSync child (30 s budget) but timed out at 5.16 s, because the
repo-root vitest config CI's Test Suite uses has no testTimeout (5 s default).
#4839 added an 8-way parallel CLI test, so the runner is busier and the cold
start crossed 5 s. Set a describe-level 45 s timeout. Test-only change.

Co-authored-by: r <r@x>
This commit is contained in:
rUvandr authored and GitHub committed 2026-11-17 15:14:56 -05:00
1 parent 795a156dd1
commit 2dca4afd14
1 file changed
+3 -1
@@ -9,7 +9,9 @@ import { pathToFileURL } from 'node:url';
const require = createRequire(import.meta.url);
const entry = new URL('../src/index.ts', import.meta.url).href;
describe('doctor JSON through CLI.run', () => {
// Each test cold-starts tsx in a child (spawnSync allows 30 s). The repo-root
// vitest config has no testTimeout, so give the tests the child budget plus slack.
describe('doctor JSON through CLI.run', { timeout: 45_000 }, () => {
let project: string;
beforeAll(() => {
project = mkdtempSync(join(tmpdir(), 'doctor-json-cli-'));