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

Function write

__tests__/nextjs.test.ts:111–115  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

109 let cg: CodeGraph;
110
111 function write(rel: string, content: string): void {
112 const full = path.join(tmpDir, rel);
113 fs.mkdirSync(path.dirname(full), { recursive: true });
114 fs.writeFileSync(full, content);
115 }
116
117 beforeAll(async () => {
118 await initGrammars();

Callers 1

nextjs.test.tsFile · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected