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

Function createFakeTerminal

src/components/diff/DiffDetailView.test.tsx:92–105  ·  view source on GitHub ↗
(columns = 80, rows = 20)

Source from the content-addressed store, hash-verified

90}
91
92function createFakeTerminal(columns = 80, rows = 20): FakeTerminal {
93 let output = ''
94 const stdout = createFakeOutput(columns, rows)
95 const stderr = createFakeOutput(columns, rows)
96 stdout.on('data', chunk => {
97 output += chunk.toString()
98 })
99 return {
100 stdin: createFakeInput(),
101 stdout,
102 stderr,
103 getOutput: () => output,
104 }
105}
106
107async function waitFor(
108 predicate: () => boolean,

Callers 2

renderDiffDetailFunction · 0.70
mountTranscriptMessagesFunction · 0.50

Calls 3

createFakeOutputFunction · 0.70
createFakeInputFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected