Skip to content

Commit 26f87ed

Browse files
MasonNightclaude
andcommitted
test(mobile): mock terminology state in file preview test
ThreadFeed now reads change-request terms, which pulled preferences and expo-secure-store into this test's graph past its partial expo mock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1cf225a commit 26f87ed

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
@@ -174,6 +174,10 @@ vi.mock("../state/session", () => ({
174174
usePreparedConnection: () => ({ _tag: "Some", value: { httpBaseUrl: "https://example.com" } }),
175175
}));
176176
vi.mock("../state/atom-registry", () => ({ appAtomRegistry: {} }));
177+
vi.mock("../state/change-request-terminology", async () => {
178+
const { changeRequestTerms } = await import("@t3tools/client-runtime/source-control-clients");
179+
return { useChangeRequestTerms: () => changeRequestTerms(false) };
180+
});
177181
vi.mock("../state/threads", () => ({ environmentThreadShells: {}, threadEnvironment: {} }));
178182
vi.mock("../state/entities", () => ({
179183
useLiveThreadLinkLabels: (text: string) => text,

0 commit comments

Comments
 (0)