Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(web): update pair/local test mocks for new store imports
Naiyuan Qing616f026f4223
diff --git a/apps/web/app/pair/local/page.test.tsx b/apps/web/app/pair/local/page.test.tsxindex f409686550..38ec775bde 100644--- a/apps/web/app/pair/local/page.test.tsx+++ b/apps/web/app/pair/local/page.test.tsx@@ -56,15 +56,21 @@ vi.mock("next/navigation", () => ({useSearchParams: () => new URLSearchParams("token=test-token"),}));-vi.mock("../../../lib/api", () => ({+vi.mock("@/shared/api", () => ({api: {getDaemonPairingSession: mockGetDaemonPairingSession,approveDaemonPairingSession: mockApproveDaemonPairingSession,},}));-vi.mock("../../../lib/auth-context", () => ({- useAuth: () => mockAuthValue,+vi.mock("@/features/auth", () => ({+ useAuthStore: (selector: (s: any) => any) =>+ selector(mockAuthValue),+}));++vi.mock("@/features/workspace", () => ({+ useWorkspaceStore: (selector: (s: any) => any) =>+ selector(mockAuthValue),}));import LocalDaemonPairPage from "./page";