(steps: ReturnType<typeof shortestScopePath>)
| 4 | |
| 5 | const edge = (id: number, source: number, target: number, type = 'CALLS', line?: number): GraphEdge => ({ id, source, target, type, line }); |
| 6 | const hops = (steps: ReturnType<typeof shortestScopePath>) => steps?.map(step => `${step.from}>${step.to}:${step.edge.id}`); |
| 7 | |
| 8 | describe('shortest path inside the loaded scope', () => { |
| 9 | // 1 -> 2 -> 3 -> 4, a shortcut 1 -> 4 typed IMPORTS, and a caller 5 -> 1. |