(...args: string[])
| 50 | } |
| 51 | |
| 52 | function cli(...args: string[]): { code: number | null; stdout: string; stderr: string } { |
| 53 | const run = spawnSync(process.execPath, [BIN, ...args], { |
| 54 | encoding: 'utf-8', |
| 55 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', NO_COLOR: '1', CODEGRAPH_TELEMETRY: '0' }, |
| 56 | }); |
| 57 | return { code: run.status, stdout: run.stdout, stderr: run.stderr }; |
| 58 | } |
| 59 | |
| 60 | it('lists them in the index health, with their size, and nothing else as oversize', async () => { |
| 61 | write({ 'src/small.ts': SMALL, 'src/big.ts': BIG, 'data/big.json': `{"k":"${'y'.repeat(MAX_SOURCE_FILE_SIZE_BYTES)}"}` }); |
no outgoing calls
no test coverage detected