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

Function run

__tests__/cli-parse-warning.test.ts:29–43  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

27 });
28
29 function run(args: string[]) {
30 const result = spawnSync(process.execPath, [BIN, ...args], {
31 cwd: root,
32 encoding: 'utf-8',
33 timeout: 20_000,
34 env: {
35 ...process.env,
36 CODEGRAPH_NO_DAEMON: '1',
37 CODEGRAPH_WASM_RELAUNCHED: '1',
38 CODEGRAPH_TELEMETRY: '0',
39 NO_COLOR: '1',
40 },
41 });
42 return { status: result.status, out: (result.stdout ?? '') + (result.stderr ?? '') };
43 }
44
45 it('shows a collapsed parse without failing, then stays quiet after a healthy re-index', () => {
46 const sourcePath = path.join(root, 'min.cpp');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected