diff --git a/frontend/src/lib/history.dom.test.ts b/frontend/src/lib/history.dom.test.ts index 9cef8b79..9f9be78c 100644 --- a/frontend/src/lib/history.dom.test.ts +++ b/frontend/src/lib/history.dom.test.ts @@ -14,7 +14,10 @@ import { renderHook, act } from "@testing-library/react"; import { useBackToClose, useBackToExit } from "./history"; // Let the mount effect's coalesced reconcile microtask settle. -const settle = () => act(async () => { await Promise.resolve(); }); +const settle = () => + act(async () => { + await Promise.resolve(); + }); // A genuine user Back (browser already dropped the entry; popstate arrives with no pending back()). const userBack = () => act(() => {