(...nodes: TaskNode[])
| 13 | } |
| 14 | |
| 15 | function graphOf(...nodes: TaskNode[]): TaskGraph { |
| 16 | const map = new Map(nodes.map(n => [n.id, n])); |
| 17 | return { nodes: map, goal: 'test', acyclic: true }; |
| 18 | } |
| 19 | |
| 20 | /** Hooks that record execution order and always succeed. */ |
| 21 | function recordingHooks(order: string[]): SchedulerHooks { |