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

Function mk

__tests__/exclude-config.test.ts:92–96  ·  view source on GitHub ↗
(rel: string, content = 'export const x = 1;\n')

Source from the content-addressed store, hash-verified

90describe('exclude behavior — scanDirectory drops excluded paths (#999)', () => {
91 let dir: string;
92 const mk = (rel: string, content = 'export const x = 1;\n') => {
93 const p = path.join(dir, rel);
94 fs.mkdirSync(path.dirname(p), { recursive: true });
95 fs.writeFileSync(p, content);
96 };
97 const writeConfig = (obj: unknown) =>
98 fs.writeFileSync(path.join(dir, 'codegraph.json'), JSON.stringify(obj));
99

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected