Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

test(incremental): yield between subprocess fixtures

Lum11044cf71e3cb414
diff --git a/tests/skill/understand/test_prepare_incremental.test.mjs b/tests/skill/understand/test_prepare_incremental.test.mjs
index 916113e3..3afb25d5 100644
--- a/tests/skill/understand/test_prepare_incremental.test.mjs
+++ b/tests/skill/understand/test_prepare_incremental.test.mjs
@@ -187,8 +187,12 @@ function prepare(root, baseCommit, extraArgs = []) {
};
}
-afterEach(() => {
+afterEach(async () => {
for (const root of roots.splice(0)) rmSync(root, { recursive: true, force: true });
+ // These integration tests intentionally use synchronous child processes.
+ // Yield between cases so Vitest workers can service task-update RPC replies,
+ // especially on slower Windows runners where the full file exceeds 60s.
+ await new Promise(resolve => setImmediate(resolve));
});
describe('prepare-incremental.mjs', { timeout: 30_000 }, () => {