MCPcopy
hub / github.com/colbymchenry/codegraph / writeConfig

Function writeConfig

__tests__/extension-mapping.test.ts:53–57  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

51 fs.rmSync(dir, { recursive: true, force: true });
52 });
53 const writeConfig = (obj: unknown) =>
54 fs.writeFileSync(
55 path.join(dir, 'codegraph.json'),
56 typeof obj === 'string' ? obj : JSON.stringify(obj)
57 );
58
59 it('returns an empty map when there is no codegraph.json', () => {
60 expect(loadExtensionOverrides(dir)).toEqual({});

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected