MCPcopy
hub / github.com/sindresorhus/execa / assertSubprocessOutput

Function assertSubprocessOutput

test/helpers/convert.js:51–54  ·  view source on GitHub ↗
(t, subprocess, expectedOutput = foobarString, fdNumber = 1)

Source from the content-addressed store, hash-verified

49};
50
51export const assertSubprocessOutput = async (t, subprocess, expectedOutput = foobarString, fdNumber = 1) => {
52 const result = await subprocess;
53 t.deepEqual(result.stdio[fdNumber], expectedOutput);
54};
55
56export const assertStreamError = (t, stream, error) => assertPromiseError(t, finishedStream(stream), error);
57

Callers 15

testTextFunction · 0.90
testTextOutputFunction · 0.90
writable.jsFile · 0.90
testWritableDefaultFunction · 0.90
testEarlySuccessFunction · 0.90
duplex.jsFile · 0.90
readable.jsFile · 0.90
testReadableDefaultFunction · 0.90
testStdoutAbortFunction · 0.90
testBufferDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…