feat: add 'blocked' status to tasks and todos (#22735)

This commit is contained in:
anj-s
2026-03-17 16:24:26 -07:00
committed by GitHub
parent e1eefffcf1
commit b8719bcd47
13 changed files with 64 additions and 9 deletions
+9 -1
View File
@@ -222,15 +222,23 @@ describe('Tracker Tools Integration', () => {
status: TaskStatus.IN_PROGRESS,
dependencies: [],
};
const t4 = {
id: 't4',
title: 'T4',
type: TaskType.TASK,
status: TaskStatus.BLOCKED,
dependencies: [],
};
const mockService = {
listTasks: async () => [t1, t2, t3],
listTasks: async () => [t1, t2, t3, t4],
} as unknown as TrackerService;
const display = await buildTodosReturnDisplay(mockService);
expect(display.todos).toEqual([
{ description: `task: T3 (t3)`, status: 'in_progress' },
{ description: `task: T2 (t2)`, status: 'pending' },
{ description: `task: T4 (t4)`, status: 'blocked' },
{ description: `task: T1 (t1)`, status: 'completed' },
]);
});