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

Function write

__tests__/sveltekit-router.test.ts:61–65  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

59 let cg: CodeGraph;
60
61 function write(rel: string, content: string): void {
62 const full = path.join(tmpDir, rel);
63 fs.mkdirSync(path.dirname(full), { recursive: true });
64 fs.writeFileSync(full, content);
65 }
66
67 beforeAll(async () => {
68 await initGrammars();

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected