Skip to content

Commit c19021b

Browse files
Happy Camprclaude
authored andcommitted
test(mobile): the file preview test mocks the state module ThreadFeed now reads
ThreadFeed reads the sender's environment through state/presentation, which loads the connection catalog and its native modules. The file preview test renders ThreadFeed with its state modules mocked, so it mocks this one too. Co-Authored-By: Claude Fable 5.2 <[email protected]>
1 parent c12a0df commit c19021b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ vi.mock("../state/entities", () => ({
182182
vi.mock("../state/use-thread-selection", () => ({
183183
useThreadSelection: () => ({ selectedThread: null }),
184184
}));
185+
vi.mock("../state/presentation", () => ({
186+
useEnvironmentPresentation: () => ({ isReady: true, presentation: null }),
187+
}));
185188
vi.mock("../state/use-atom-query-runner", () => ({ useAtomQueryRunner: () => vi.fn() }));
186189
vi.mock("../state/use-atom-command", () => ({}));
187190
vi.mock("../state/v2-item-support", () => ({}));

0 commit comments

Comments
 (0)