mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user