(cwd: string, arg: string)
| 19 | const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js'); |
| 20 | |
| 21 | function 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 | |
| 30 | describe('codegraph affected — input path normalization (#825)', () => { |
| 31 | let tempDir: string; |
no outgoing calls
no test coverage detected