(file: string)
| 182 | |
| 183 | /** The call and instantiation edges out of a file's nodes, as `kind target-file:target-name`. */ |
| 184 | const outOf = (file: string) => |
| 185 | cg |
| 186 | .getOutgoingEdgesFrom(cg.getNodesInFile(file).map((n) => n.id)) |
| 187 | .filter((e) => e.kind === 'calls' || e.kind === 'instantiates') |
| 188 | .map((e) => { |
| 189 | const target = cg.getNode(e.target)!; |
| 190 | return `${e.kind} ${target.filePath}:${target.name}`; |
| 191 | }) |
| 192 | .sort(); |
| 193 | |
| 194 | describe('`require(…).default` of an ES module', () => { |
| 195 | it('is the module’s default export, as `.default` and as `{ default: X }`', () => { |
no test coverage detected