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

Function write

__tests__/deprioritize-config.test.ts:100–104  ·  view source on GitHub ↗
(config: unknown)

Source from the content-addressed store, hash-verified

98 });
99
100 const write = (config: unknown): string => {
101 const sub = fs.mkdtempSync(path.join(dir, 'p-'));
102 fs.writeFileSync(path.join(sub, 'codegraph.json'), JSON.stringify(config));
103 return sub;
104 };
105
106 it('defaults to empty with no config file', () => {
107 const sub = fs.mkdtempSync(path.join(dir, 'none-'));

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected