(source: 'stdout' | 'stderr', chunk: Buffer)
| 94 | const startWebServer = async (command: string, url: string, cwd: string) => { |
| 95 | const output: string[] = []; |
| 96 | const appendOutput = (source: 'stdout' | 'stderr', chunk: Buffer) => { |
| 97 | output.push(`[${source}] ${chunk.toString()}`); |
| 98 | output.splice(0, Math.max(0, output.length - 40)); |
| 99 | }; |
| 100 | const formatOutput = () => |
| 101 | output.length === 0 |
| 102 | ? 'No server output was captured.' |
no test coverage detected
searching dependent graphs…