MCPcopy Create free account
hub / github.com/Noumena-Network/code / createFakeInput

Function createFakeInput

src/components/diff/DiffDetailView.test.tsx:71–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69})
70
71function createFakeInput(): FakeInput {
72 const stdin = new PassThrough() as FakeInput
73 stdin.isTTY = true
74 stdin.isRaw = false
75 stdin.setRawMode = (raw: boolean) => {
76 stdin.isRaw = raw
77 }
78 stdin.ref = () => stdin
79 stdin.unref = () => stdin
80 return stdin
81}
82
83function createFakeOutput(columns: number, rows: number): FakeOutput {
84 const stdout = new PassThrough() as FakeOutput

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected