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) {