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

Function runCli

__tests__/cli-truncation.test.ts:10–15  ·  view source on GitHub ↗
(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

8const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
9
10function runCli(cwd: string, args: string[]) {
11 return spawnSync(process.execPath, [BIN, ...args, '-p', cwd], {
12 encoding: 'utf-8',
13 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' },
14 });
15}
16
17describe('CLI truncation reporting (#1639)', () => {
18 let tempDir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected