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

Function affected

__tests__/cli-affected-test-conventions.test.ts:19–26  ·  view source on GitHub ↗
(cwd: string, args: string[])

Source from the content-addressed store, hash-verified

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

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected