The best way to control Claude Code, Codex and more from any computer or phone
fix(test): drain worker broadcasts before restoring browser globals (#11349)
maria committed
Sep 11, 2026 at 21:26 UTC
8a2d5f545ae1f76d08a6a6515f6b6c383cada5ad
1 file changed
+2
apps/web/src/components/files/fileEditorLanguageReadiness.test.ts
+2
@@ -116,6 +116,8 @@ afterEach(async () => {
116
pool?.terminate();
117
await Promise.all(terminationPromises);
118
await disposeHighlighter();
119
+ // Drain the pool's final state broadcast before removing the animation frame stubs.
120
+ await new Promise<void>((resolve) => setImmediate(resolve));
121
vi.unstubAllGlobals();
122
});
123