Skip to content

Commit 7f55679

Browse files
t3dotggclaude
andcommitted
test(mobile): mock the model switch atom in the feed preview test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cdb5c7b commit 7f55679

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/lib/filePreview.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ vi.mock("./openExternalUrl", () => ({}));
269269
vi.mock("./attachmentDownload", () => ({}));
270270
vi.mock("./uuid", () => ({}));
271271
vi.mock("../features/threads/thread-context-divider", () => ({}));
272-
vi.mock("../features/threads/thread-handoff-row", () => ({}));
272+
vi.mock("../features/threads/thread-handoff-row", async () => {
273+
const { Atom } = await import("effect/reactivity");
274+
const noSwitches = Atom.make(new Map());
275+
return { modelSwitchesAtom: () => noSwitches };
276+
});
273277
vi.mock("../features/threads/ThreadGuestShareBar", () => ({ useThreadGuestShare: () => null }));
274278
vi.mock("../features/threads/SecretRequestCard", () => ({}));
275279
vi.mock("../features/threads/LinkRequestCard", () => ({ LinkRequestCard: () => null }));

0 commit comments

Comments
 (0)