(file: string)
| 53 | }); |
| 54 | |
| 55 | const targetFilesFrom = (file: string) => { |
| 56 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 57 | return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'calls').map((e) => cg.getNode(e.target)!.filePath); |
| 58 | }; |
| 59 | |
| 60 | describe('React name heuristics in JS/TS', () => { |
| 61 | it('never reach another file’s hook or context by name', () => { |
no test coverage detected