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

Function createFakeOutput

src/components/diff/DiffDetailView.test.tsx:83–90  ·  view source on GitHub ↗
(columns: number, rows: number)

Source from the content-addressed store, hash-verified

81}
82
83function createFakeOutput(columns: number, rows: number): FakeOutput {
84 const stdout = new PassThrough() as FakeOutput
85 stdout.isTTY = true
86 stdout.columns = columns
87 stdout.rows = rows
88 stdout.getWindowSize = () => [columns, rows]
89 return stdout
90}
91
92function createFakeTerminal(columns = 80, rows = 20): FakeTerminal {
93 let output = ''

Callers 1

createFakeTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected