(cwd: string, args: string[])
| 17 | const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js'); |
| 18 | |
| 19 | function run(cwd: string, args: string[]) { |
| 20 | const r = spawnSync(process.execPath, [BIN, ...args], { |
| 21 | cwd, |
| 22 | encoding: 'utf-8', |
| 23 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' }, |
| 24 | }); |
| 25 | return { status: r.status, out: (r.stdout ?? '') + (r.stderr ?? '') }; |
| 26 | } |
| 27 | |
| 28 | describe('codegraph index <path> (#1524)', () => { |
| 29 | let root: string; |
no outgoing calls
no test coverage detected