MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/js-class-expressions.test.ts:134–137  ·  view source on GitHub ↗
(rel: string, lines: string[])

Source from the content-addressed store, hash-verified

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}`, [

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected