(columns: number, rows: number)
| 50 | } |
| 51 | |
| 52 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 53 | const stdout = new PassThrough() as FakeOutput |
| 54 | stdout.isTTY = true |
| 55 | stdout.columns = columns |
| 56 | stdout.rows = rows |
| 57 | stdout.getWindowSize = () => [columns, rows] |
| 58 | return stdout |
| 59 | } |
| 60 | |
| 61 | async function waitFor( |
| 62 | predicate: () => boolean, |