* ` : ` for every edge leaving * `file`'s nodes. JSX tags are left out: a separate pass links ` ` by * name without reading the file's imports, alias or not.
(cg: CodeGraph, file: string)
| 39 | * name without reading the file's imports, alias or not. |
| 40 | */ |
| 41 | function edgesFrom(cg: CodeGraph, file: string): string[] { |
| 42 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 43 | return cg |
| 44 | .getOutgoingEdgesFrom(ids) |
| 45 | .filter((e) => e.metadata?.synthesizedBy !== 'jsx-render') |
| 46 | .map((e) => { |
| 47 | const target = cg.getNode(e.target); |
| 48 | return `${e.kind} ${target?.filePath}:${target?.qualifiedName}`; |
| 49 | }) |
| 50 | .sort(); |
| 51 | } |
| 52 | |
| 53 | describe('a catch-all tsconfig path alias', () => { |
| 54 | it('leaves a declared package outside the repository when it names no project file', async () => { |
no test coverage detected