()
| 44 | }) |
| 45 | |
| 46 | function createFakeInput(): FakeInput { |
| 47 | const stdin = new PassThrough() as FakeInput |
| 48 | stdin.isTTY = true |
| 49 | stdin.isRaw = false |
| 50 | stdin.setRawMode = raw => { |
| 51 | stdin.isRaw = raw |
| 52 | } |
| 53 | stdin.ref = () => stdin |
| 54 | stdin.unref = () => stdin |
| 55 | return stdin |
| 56 | } |
| 57 | |
| 58 | function createFakeOutput(columns = 80, rows = 24): FakeOutput { |
| 59 | const stdout = new PassThrough() as FakeOutput |
no outgoing calls
no test coverage detected