Skip to content

Commit 9f7f310

Browse files
committed
test(lint): de-flake lazy-deps in-process gate test — explicit 30s timeout
The in-process variant cold-loads sucrase + typescript and took 5.6s on a loaded CI runner, tripping vitest's default 5s per-test timeout (Test Core failure on this PR's first run). The test asserts a loading CONTRACT, not latency — give it an explicit generous timeout like the sibling dist-based variants effectively have via their spawn overhead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ph4jEAfWDh6taMbZweWhom
1 parent 3212c58 commit 9f7f310

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/lint/src/lazy-deps.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,8 @@ describe('lazy dependency loading (kernel boot-path contract)', () => {
129129
});
130130
expect(depLoaded(req.cache, 'typescript')).toBe(true);
131131
expect(props.some((f) => f.rule === 'react-prop-missing-required' && /objectName/.test(f.message))).toBe(true);
132-
});
132+
// Cold-loading sucrase + typescript in-process takes >5s on a loaded CI
133+
// runner (dozens of parallel turbo tasks) — the default 5s timeout flakes
134+
// there while the assertion set is pure contract, not latency.
135+
}, 30_000);
133136
});

0 commit comments

Comments
 (0)