MCPcopy
hub / github.com/colbymchenry/codegraph / affected

Function affected

__tests__/cli-affected-paths.test.ts:21–28  ·  view source on GitHub ↗
(cwd: string, arg: string)

Source from the content-addressed store, hash-verified

19const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
20
21function affected(cwd: string, arg: string): string[] {
22 const out = execFileSync(process.execPath, [BIN, 'affected', arg, '--quiet', '-p', cwd], {
23 encoding: 'utf-8',
24 env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' },
25 stdio: ['ignore', 'pipe', 'pipe'],
26 });
27 return out.split('\n').map((s) => s.trim()).filter(Boolean);
28}
29
30describe('codegraph affected — input path normalization (#825)', () => {
31 let tempDir: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected