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
This commit is contained in:
Jinwoo-H
2026-09-19 03:06:15 -04:00
parent 43e93cf395
commit 39b15e395d
@@ -9,7 +9,6 @@ import {
import { createShellPageClient } from '../mobile-web-shell/bridge/page-bootstrap' import { createShellPageClient } from '../mobile-web-shell/bridge/page-bootstrap'
import type { BridgeRpcClient } from '../mobile-web-shell/bridge/bridge-rpc-client' import type { BridgeRpcClient } from '../mobile-web-shell/bridge/bridge-rpc-client'
import type { RouteHandoff } from './route-handoff' import type { RouteHandoff } from './route-handoff'
import { WRAPPED_HREF_MEMBERS } from './route-handoff.web'
const router = vi.hoisted(() => ({ const router = vi.hoisted(() => ({
push: vi.fn(), push: vi.fn(),
@@ -37,7 +36,7 @@ vi.mock('../transport/host-client-hooks', () => ({
})) }))
import { RpcClientProvider } from '../transport/client-context.web' import { RpcClientProvider } from '../transport/client-context.web'
import { useRouteHandoff } from './route-handoff.web' import { useRouteHandoff, WRAPPED_HREF_MEMBERS } from './route-handoff.web'
const INIT = { const INIT = {
v: BRIDGE_PROTOCOL_VERSION, v: BRIDGE_PROTOCOL_VERSION,