Skip to content

Commit 3168d12

Browse files
committed
test(web): mock the git action queue's imports in the chat git status test
1 parent 9c20921 commit 3168d12

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/state/vcs.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { describe, expect, it, vi } from "vite-plus/test";
55
import { chatGitStatusAtom } from "./vcs";
66

77
vi.mock("../connection/runtime", () => ({ connectionAtomRuntime: {} }));
8+
vi.mock("../rpc/atomRegistry", () => ({ appAtomRegistry: {} }));
9+
vi.mock("./threads", () => ({ environmentThreadShells: {} }));
810
vi.mock("@t3tools/client-runtime/state/vcs", () => ({
11+
createGitActionQueue: () => ({}),
912
createVcsActionManager: () => ({}),
1013
createVcsEnvironmentAtoms: () => ({}),
1114
createVcsStatusRevalidationAtomFamily: () => () => null,

0 commit comments

Comments
 (0)