(rel: string, lines: string[])
| 132 | it('links the class\'s supertypes, super and this calls, and nothing outside by its name', async () => { |
| 133 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-class-expression-')); |
| 134 | const write = (rel: string, lines: string[]) => { |
| 135 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 136 | fs.writeFileSync(path.join(root, rel), lines.join('\n') + '\n'); |
| 137 | }; |
| 138 | write('package.json', [JSON.stringify({ name: 'app' })]); |
| 139 | write(`src/base.${ext}`, ['export class Base { run() { return 1; } }', 'export function register(T) { return T; }']); |
| 140 | write(`src/widgets.${ext}`, [ |
no test coverage detected