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

Function json

__tests__/cli-implementations.test.ts:34–38  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

32}
33
34function json(args: string[]) {
35 const result = run([...args, '--json']);
36 expect(result.status, result.stderr).toBe(0);
37 return JSON.parse(result.stdout);
38}
39
40beforeAll(async () => {
41 projectRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-impl-2833-'));

Callers 1

Calls 2

parseMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected