From b44f3502b9bf19eb31cf71c6923fbf1689bb91be Mon Sep 17 00:00:00 2001 From: bincxz <16399091+binaricat@users.noreply.github.com> Date: Mon, 23 Nov 2026 19:32:51 +0800 Subject: [PATCH] test(tabs): drain activeTabStore notification timer before closing jsdom --- application/state/useSessionState.reopenClosedTab.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/application/state/useSessionState.reopenClosedTab.test.ts b/application/state/useSessionState.reopenClosedTab.test.ts index 357013e7b..71cf50d8d 100644 --- a/application/state/useSessionState.reopenClosedTab.test.ts +++ b/application/state/useSessionState.reopenClosedTab.test.ts @@ -39,6 +39,7 @@ function setupDom(t: test.TestContext) { const root = createRoot(document.getElementById("root")!); t.after(async () => { activeTabStore.setActiveTabId("vault"); + await new Promise((resolve) => dom.window.setTimeout(resolve, 0)); await act(async () => root.unmount()); dom.window.close(); for (const [key, descriptor] of previous) {