()
| 53 | }) |
| 54 | |
| 55 | function createFakeInput(): FakeInput { |
| 56 | const stdin = new PassThrough() as FakeInput |
| 57 | stdin.isTTY = true |
| 58 | stdin.isRaw = false |
| 59 | stdin.setRawMode = (raw: boolean) => { |
| 60 | stdin.isRaw = raw |
| 61 | } |
| 62 | stdin.ref = () => stdin |
| 63 | stdin.unref = () => stdin |
| 64 | return stdin |
| 65 | } |
| 66 | |
| 67 | function createFakeOutput(columns: number, rows: number): FakeOutput { |
| 68 | const stdout = new PassThrough() as FakeOutput |
no outgoing calls
no test coverage detected