The files the calls written in `caller` land in.
(graph: CodeGraph, caller: string)
| 74 | |
| 75 | /** The files the calls written in `caller` land in. */ |
| 76 | function callTargets(graph: CodeGraph, caller: string): string[] { |
| 77 | const node = graph.getNodesByQualifiedName(caller)[0]!; |
| 78 | return graph.getOutgoingEdges(node.id) |
| 79 | .filter((e) => e.kind === 'calls') |
| 80 | .map((e) => `${graph.getNode(e.target)!.filePath}::${graph.getNode(e.target)!.qualifiedName}`) |
| 81 | .sort(); |
| 82 | } |
| 83 | |
| 84 | const tsconfig = (target: string): string => |
| 85 | JSON.stringify({ compilerOptions: { baseUrl: '.', paths: { '@lib/*': [`${target}/*`] } } }); |
no test coverage detected