Skip to content

Commit e38f864

Browse files
committed
Update service.test.ts
1 parent d9fda0d commit e38f864

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/twig/src/renderer/features/sessions/service/service.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const mockTrpcAgent = vi.hoisted(() => ({
1515
cancelPermission: { mutate: vi.fn() },
1616
onSessionEvent: { subscribe: vi.fn() },
1717
onPermissionRequest: { subscribe: vi.fn() },
18+
resetAll: { mutate: vi.fn().mockResolvedValue(undefined) },
1819
}));
1920

2021
const mockTrpcWorkspace = vi.hoisted(() => ({
@@ -44,6 +45,7 @@ const mockSessionStoreSetters = vi.hoisted(() => ({
4445
setPendingPermissions: vi.fn(),
4546
getSessionByTaskId: vi.fn(),
4647
getSessions: vi.fn(() => ({})),
48+
clearAll: vi.fn(),
4749
}));
4850

4951
vi.mock("@features/sessions/stores/sessionStore", () => ({

0 commit comments

Comments
 (0)