authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-09-11 21:26:32-03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-11 21:26:32-03:00
log8a2d5f545ae1f76d08a6a6515f6b6c383cada5ad
treefb11df97968e688d857de21fbf0f1d9599817176
parent36668dbe4fe2f8c881cc4f93bc675413eef1406f
signature Signed by PGP key B5690EEEBB952194

fix(test): drain worker broadcasts before restoring browser globals (#11349)


1 files changed, 2 insertions(+), 0 deletions(-)

apps/web/src/components/files/fileEditorLanguageReadiness.test.ts+2
...@@ -116,6 +116,8 @@ afterEach(async () => {...@@ -116,6 +116,8 @@ afterEach(async () => {
116 pool?.terminate();116 pool?.terminate();
117 await Promise.all(terminationPromises);117 await Promise.all(terminationPromises);
118 await disposeHighlighter();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));
119 vi.unstubAllGlobals();121 vi.unstubAllGlobals();
120});122});
121123