(isTTY: boolean)
| 3 | import { INTERACTIVE_INPUT_ERROR, resolveInteractiveStdin } from "@/cli/cmd/run/runtime.stdin" |
| 4 | |
| 5 | function stream(isTTY: boolean) { |
| 6 | return Object.assign(new Readable({ read() {} }), { isTTY }) as NodeJS.ReadStream |
| 7 | } |
| 8 | |
| 9 | describe("run interactive stdin", () => { |
| 10 | test("reuses stdin when it is already a tty", () => { |