Skip to content

Commit e1bf8fb

Browse files
u917 carry the task-title collaborator the delete batch dereferences
1 parent b2aedf5 commit e1bf8fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/core/webview/__tests__/ClineProvider.partialTaskDelete.spec.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ async function makeFixture(deleteMany: ReturnType<typeof vi.fn>) {
3434
removeClineFromStack: vi.fn().mockResolvedValue(undefined),
3535
postStateToWebview: vi.fn().mockResolvedValue(undefined),
3636
deleteTaskFromState: vi.fn().mockResolvedValue(undefined),
37+
// deleteTaskWithId cancels the task-title record for every id it removes, so the double
38+
// must carry the collaborator the production path dereferences when the pull is tested
39+
// against current main: "this.taskTitleService.cancel(taskId, \"deleted\")" is reached from
40+
// the provider, not from the fixture.
41+
taskTitleService: { cancel: vi.fn() },
3742
contextProxy: { globalStorageUri: { fsPath: storageDir } },
3843
cwd: storageDir,
3944
} as unknown as ClineProvider

0 commit comments

Comments
 (0)