We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3445695 commit 8146daaCopy full SHA for 8146daa
apps/twig/src/renderer/features/sessions/service/service.test.ts
@@ -15,6 +15,7 @@ const mockTrpcAgent = vi.hoisted(() => ({
15
cancelPermission: { mutate: vi.fn() },
16
onSessionEvent: { subscribe: vi.fn() },
17
onPermissionRequest: { subscribe: vi.fn() },
18
+ resetAll: { mutate: vi.fn().mockResolvedValue(undefined) },
19
}));
20
21
const mockTrpcWorkspace = vi.hoisted(() => ({
@@ -44,6 +45,7 @@ const mockSessionStoreSetters = vi.hoisted(() => ({
44
45
setPendingPermissions: vi.fn(),
46
getSessionByTaskId: vi.fn(),
47
getSessions: vi.fn(() => ({})),
48
+ clearAll: vi.fn(),
49
50
51
vi.mock("@features/sessions/stores/sessionStore", () => ({
0 commit comments