(task: TaskInfo, app: App)
| 88 | } |
| 89 | |
| 90 | export function getBlockedByTaskPaths(task: TaskInfo, app: App): string[] { |
| 91 | const entries = Array.isArray(task.blockedBy) |
| 92 | ? (task.blockedBy as Array<TaskDependency | string>) |
| 93 | : []; |
| 94 | const paths = new Set<string>(); |
| 95 | |
| 96 | for (const entry of entries) { |
| 97 | const normalized = normalizeDependencyEntry(entry); |
| 98 | if (!normalized) continue; |
| 99 | |
| 100 | const resolved = resolveDependencyEntry(app, task.path, normalized); |
| 101 | const path = resolved?.path || normalized.uid; |
| 102 | if (path) { |
| 103 | paths.add(path); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | return Array.from(paths); |
| 108 | } |
no test coverage detected