()
| 272 | |
| 273 | describe('routing by severity', function () { |
| 274 | function createFakeStream() { |
| 275 | const chunks: string[] = []; |
| 276 | const stream = Object.assign(new Stream(), { |
| 277 | write: (m: string) => { |
| 278 | chunks.push(m); |
| 279 | return true; |
| 280 | }, |
| 281 | writable: true, |
| 282 | isTTY: false, |
| 283 | end: () => {}, |
| 284 | }); |
| 285 | return {stream, chunks}; |
| 286 | } |
| 287 | |
| 288 | let out: ReturnType<typeof createFakeStream>; |
| 289 | let err: ReturnType<typeof createFakeStream>; |