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

Function writeConfig

__tests__/include-config.test.ts:43–47  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

41 fs.rmSync(dir, { recursive: true, force: true });
42 });
43 const writeConfig = (obj: unknown) =>
44 fs.writeFileSync(
45 path.join(dir, 'codegraph.json'),
46 typeof obj === 'string' ? obj : JSON.stringify(obj)
47 );
48
49 it('returns an empty list when there is no codegraph.json (the default)', () => {
50 expect(loadIncludePatterns(dir)).toEqual([]);

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected