Skip to content

Commit 6f57e5f

Browse files
committed
test(mobile): isolate refresh tests from native connections
1 parent b575bcc commit 6f57e5f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎apps/mobile/src/features/pull-requests/usePullRequestList.test.tsx‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ import { expect, it, vi } from "vite-plus/test";
1111

1212
const mocks = vi.hoisted(() => ({ failPage: false }));
1313

14+
vi.mock("../../connection/catalog", async () => {
15+
const { Atom } = await import("effect/reactivity");
16+
return {
17+
environmentCatalog: {
18+
sessionGenerationAtom: Atom.family((_environmentId: string) => Atom.make(0)),
19+
},
20+
};
21+
});
22+
1423
vi.mock("../../state/pull-requests", async () => {
1524
const { AsyncResult, Atom } = await import("effect/reactivity");
1625
const Effect = await import("effect/Effect");

0 commit comments

Comments
 (0)