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

Function cli

__tests__/oversize-files-reported.test.ts:52–58  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

50 }
51
52 function cli(...args: string[]): { code: number | null; stdout: string; stderr: string } {
53 const run = spawnSync(process.execPath, [BIN, ...args], {
54 encoding: 'utf-8',
55 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', NO_COLOR: '1', CODEGRAPH_TELEMETRY: '0' },
56 });
57 return { code: run.status, stdout: run.stdout, stderr: run.stderr };
58 }
59
60 it('lists them in the index health, with their size, and nothing else as oversize', async () => {
61 write({ 'src/small.ts': SMALL, 'src/big.ts': BIG, 'data/big.json': `{"k":"${'y'.repeat(MAX_SOURCE_FILE_SIZE_BYTES)}"}` });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected