()
| 150 | write('src/use.ts', plain); |
| 151 | const graph = await CodeGraph.init(dir, { index: true }); |
| 152 | const calls = (): string[] => |
| 153 | graph.getNodesInFile('src/use.ts').flatMap((n) => |
| 154 | graph.getOutgoingEdges(n.id).filter((e) => e.kind === 'calls').map((e) => `${graph.getNode(e.target)!.filePath}:${graph.getNode(e.target)!.name}`)); |
| 155 | try { |
| 156 | expect(calls()).toContain('src/io.ts:readFile'); |
| 157 | write('src/use.ts', dynamic); |
no test coverage detected