(qualifiedName: string, file: string)
| 369 | }); |
| 370 | |
| 371 | function node(qualifiedName: string, file: string): Node { |
| 372 | const name = qualifiedName.split('::').pop()!; |
| 373 | const found = cg.getNodesByName(name).filter((n) => n.qualifiedName === qualifiedName && n.filePath === file && n.kind !== 'import'); |
| 374 | expect(found, `${qualifiedName} in ${file}`).toHaveLength(1); |
| 375 | return found[0]!; |
| 376 | } |
| 377 | |
| 378 | /** The supertypes of a class, as `kind qualifiedName (file) resolvedBy`. */ |
| 379 | function supertypes(qualifiedName: string, file: string): string[] { |
no test coverage detected