(columns = 80, rows = 24)
| 56 | } |
| 57 | |
| 58 | function createFakeOutput(columns = 80, rows = 24): FakeOutput { |
| 59 | const stdout = new PassThrough() as FakeOutput |
| 60 | stdout.isTTY = true |
| 61 | stdout.columns = columns |
| 62 | stdout.rows = rows |
| 63 | stdout.getWindowSize = () => [columns, rows] |
| 64 | return stdout |
| 65 | } |
| 66 | |
| 67 | function captureWrites(stdout: FakeOutput): string[] { |
| 68 | const chunks: string[] = [] |
no outgoing calls
no test coverage detected