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

Function impact

__tests__/cli-definition-grouping.test.ts:244–249  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

242 fs.writeFileSync(path.join(root, 'hub.ts'), ['export function hub() {}', ...callers].join('\n'));
243 (await CodeGraph.init(root, { index: true })).close();
244 const impact = (...args: string[]) => spawnSync(process.execPath, [BIN, 'impact', '-p', root, ...args, '--', 'hub'], {
245 encoding: 'utf-8',
246 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' },
247 maxBuffer: 64 * 1024 * 1024,
248 timeout: 60_000,
249 });
250
251 const out = JSON.parse(impact('--json').stdout);
252 expect(out.nodeCount).toBe(10_000);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected