(args: string[])
| 27 | }); |
| 28 | |
| 29 | function run(args: string[]) { |
| 30 | const result = spawnSync(process.execPath, [BIN, ...args], { |
| 31 | cwd: root, |
| 32 | encoding: 'utf-8', |
| 33 | timeout: 20_000, |
| 34 | env: { |
| 35 | ...process.env, |
| 36 | CODEGRAPH_NO_DAEMON: '1', |
| 37 | CODEGRAPH_WASM_RELAUNCHED: '1', |
| 38 | CODEGRAPH_TELEMETRY: '0', |
| 39 | NO_COLOR: '1', |
| 40 | }, |
| 41 | }); |
| 42 | return { status: result.status, out: (result.stdout ?? '') + (result.stderr ?? '') }; |
| 43 | } |
| 44 | |
| 45 | it('shows a collapsed parse without failing, then stays quiet after a healthy re-index', () => { |
| 46 | const sourcePath = path.join(root, 'min.cpp'); |
no outgoing calls
no test coverage detected