(cwd: string, args: string[])
| 17 | const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js'); |
| 18 | |
| 19 | function 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 | |
| 28 | describe('codegraph affected — test-file conventions (#1507)', () => { |
| 29 | let dir: string; |
no test coverage detected