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

Function writeConfig

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

Source from the content-addressed store, hash-verified

27 fs.rmSync(dir, { recursive: true, force: true });
28 });
29 const writeConfig = (obj: unknown) =>
30 fs.writeFileSync(
31 path.join(dir, 'codegraph.json'),
32 typeof obj === 'string' ? obj : JSON.stringify(obj)
33 );
34
35 it('returns an empty list when there is no codegraph.json (the default)', () => {
36 expect(loadIncludeIgnoredPatterns(dir)).toEqual([]);

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected