Skip to content

Commit 6ab8d2a

Browse files
test(mobile): isolate native zoom from file preview harness
1 parent dbe5d95 commit 6ab8d2a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ vi.mock("../features/threads/ThreadMarkdownImage", async () => {
294294
const { createContext } = await import("react");
295295
return { MarkdownImageAvailableWidthContext: createContext(390) };
296296
});
297+
vi.mock("../features/threads/ZoomableImagePressable", async () => {
298+
const { Pressable } = await import("react-native");
299+
return { ZoomableImagePressable: Pressable };
300+
});
297301
vi.mock("../features/review/ReviewCommentCard", () => ({ useReviewCommentColors: () => ({}) }));
298302
vi.mock("../features/prompt-links/prompt-link-actions", () => ({}));
299303
vi.mock("@react-navigation/elements", async () => {

0 commit comments

Comments
 (0)