(args: string[])
| 82 | } |
| 83 | |
| 84 | function cli(args: string[]): string { |
| 85 | const result = spawnSync(process.execPath, [...WASM_RUNTIME_FLAGS, BIN, ...args, '-p', dir], { |
| 86 | encoding: 'utf-8', |
| 87 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1', NO_COLOR: '1' }, |
| 88 | timeout: 30_000, |
| 89 | }); |
| 90 | expect(result.status, result.stderr).toBe(0); |
| 91 | return result.stdout; |
| 92 | } |
| 93 | |
| 94 | function expectAfterDisconnectBody(text: string): void { |
| 95 | // A name or a trail entry is insufficient: these must be rendered source lines. |
no outgoing calls
no test coverage detected