From 1ae458fca72f531d27dfcca2fa2a3726c7b2e7d3 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:17:47 -0800 Subject: [PATCH] test(mobile): name mocked modules with type-only namespace imports --- .../use-mobile-folder-attached-worktrees.perf.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile/src/source-control/folder/use-mobile-folder-attached-worktrees.perf.test.ts b/mobile/src/source-control/folder/use-mobile-folder-attached-worktrees.perf.test.ts index 6ce9485a943..b24b3c0908a 100644 --- a/mobile/src/source-control/folder/use-mobile-folder-attached-worktrees.perf.test.ts +++ b/mobile/src/source-control/folder/use-mobile-folder-attached-worktrees.perf.test.ts @@ -6,6 +6,8 @@ import type { RuntimeClientEventStreamMessage } from '../../../../src/shared/run import { stubRpcClient } from '../../transport/rpc/rpc-client-test-stub' import type { RpcClient } from '../../transport/rpc/rpc-client-contract' import type { Worktree } from '../../worktree/workspace-list-types' +import type * as MobileWorkspaceLineage from '../../worktree/mobile-workspace-lineage' +import type * as FolderLineageSerialization from './folder-lineage-serialization' import type { MobileRelayHost } from '../../../../src/shared/remote-runtime/relay/mobile-relay-hosts-contract' import { MOBILE_DESKTOP_RELAY_RUNTIME_CAPABILITY } from '../../../../src/shared/mobile-desktop-relay-contract' import { HOST_LIST_TARGET, hostServerWorkspacesQuery } from '../../host-screen/host-list-queries' @@ -37,7 +39,7 @@ vi.mock('../../transport/connection/host-client-hooks', () => ({ })) const lineage = vi.hoisted(() => ({ resolutions: 0, serialized: 0, rowCommits: 0 })) vi.mock('../../worktree/mobile-workspace-lineage', async (importOriginal) => { - const actual = await importOriginal() + const actual = await importOriginal() return { ...actual, getMobileWorkspaceLineageChildren: ( @@ -50,7 +52,7 @@ vi.mock('../../worktree/mobile-workspace-lineage', async (importOriginal) => { }) // Runs behind the production key cache, so each call is a row serialized. vi.mock('./folder-lineage-serialization', async (importOriginal) => { - const actual = await importOriginal() + const actual = await importOriginal() return { serializeFolderLineage: (row: Worktree) => { lineage.serialized += 1