From 39b15e395d7cb4c07503d8bd2c830fb3df5094e0 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sat, 19 Sep 2026 03:06:15 -0400 Subject: [PATCH] fix(mobile): import the handoff module once in its own test My round-2 fold added `WRAPPED_HREF_MEMBERS` as a second import of `./route-handoff.web`, which `import(no-duplicates)` fails in the focused-plugins pass of the changed-code gate. Joined to the existing import below the mocks, which is where an import of the module under test has to sit in this file. Found by running the changed-code gate rather than by review: mobile tsc, whole tree oxlint and the suite were all green with it. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- mobile/src/navigation/route-handoff.web.test.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/src/navigation/route-handoff.web.test.tsx b/mobile/src/navigation/route-handoff.web.test.tsx index 9a68095f8ea..d121de8ae71 100644 --- a/mobile/src/navigation/route-handoff.web.test.tsx +++ b/mobile/src/navigation/route-handoff.web.test.tsx @@ -9,7 +9,6 @@ import { import { createShellPageClient } from '../mobile-web-shell/bridge/page-bootstrap' import type { BridgeRpcClient } from '../mobile-web-shell/bridge/bridge-rpc-client' import type { RouteHandoff } from './route-handoff' -import { WRAPPED_HREF_MEMBERS } from './route-handoff.web' const router = vi.hoisted(() => ({ push: vi.fn(), @@ -37,7 +36,7 @@ vi.mock('../transport/host-client-hooks', () => ({ })) import { RpcClientProvider } from '../transport/client-context.web' -import { useRouteHandoff } from './route-handoff.web' +import { useRouteHandoff, WRAPPED_HREF_MEMBERS } from './route-handoff.web' const INIT = { v: BRIDGE_PROTOCOL_VERSION,