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

Function codegraph

__tests__/local-only-gitignore.test.ts:78–85  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

76 }
77
78 function codegraph(...args: string[]): { code: number | null; output: string } {
79 const run = spawnSync(process.execPath, [BIN, ...args], {
80 cwd: dir,
81 encoding: 'utf-8',
82 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', NO_COLOR: '1', DO_NOT_TRACK: '1', CODEGRAPH_TELEMETRY: '0' },
83 });
84 return { code: run.status, output: run.stdout + run.stderr };
85 }
86
87 describe('makeGitignoreLocalOnly', () => {
88 it('writes the wildcard alone when there is no file', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected