(file: string)
| 51 | }); |
| 52 | |
| 53 | const targetsFrom = (file: string) => { |
| 54 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 55 | return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'instantiates' || e.kind === 'calls' || e.kind === 'references') |
| 56 | .map((e) => cg.getNode(e.target)!).map((t) => `${t.filePath}:${t.qualifiedName}`); |
| 57 | }; |
| 58 | |
| 59 | describe('framework name heuristics', () => { |
| 60 | it('never pick a class declared inside another file’s function', () => { |
no test coverage detected