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

Function write

__tests__/ts-dollar-method-calls.test.ts:92–97  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

90 'export abstract class OrganizationService {\n abstract organizations$(userId: string): string[];\n}\n',
91 };
92 const write = (root: string, files: Record<string, string>) => {
93 for (const [file, text] of Object.entries(files)) {
94 fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true });
95 fs.writeFileSync(path.join(root, file), text);
96 }
97 };
98 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-ts-dollar-sync-'));
99 roots.push(root);
100 write(root, caller);

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected