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

Function write

__tests__/cli-affected-cross-tier.test.ts:38–41  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

36 beforeAll(async () => {
37 root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-affected-tier-')));
38 const write = (rel: string, content: string) => {
39 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
40 fs.writeFileSync(path.join(root, rel), content);
41 };
42 write('package.json', JSON.stringify({ name: 'shop', dependencies: { express: '^4.0.0' } }));
43 // The server: a route and its handler, with a test that calls the handler.
44 write(

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected