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

Function write

__tests__/reference-target-kind.test.ts:31–35  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

29 afterEach(() => { fs.rmSync(dir, { recursive: true, force: true }); });
30
31 const write = (rel: string, body: string) => {
32 const p = path.join(dir, rel);
33 fs.mkdirSync(path.dirname(p), { recursive: true });
34 fs.writeFileSync(p, body);
35 };
36
37 type InhEdge = { src: string; srcKind: string; tgt: string; tgtKind: string; kind: string };
38

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected