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

Function assertProcessNormalExit

test/helpers/convert.js:30–33  ·  view source on GitHub ↗
(t, error, exitCode = 0)

Source from the content-addressed store, hash-verified

28};
29
30export const assertProcessNormalExit = (t, error, exitCode = 0) => {
31 t.is(error.exitCode, exitCode);
32 t.is(error.signal, undefined);
33};
34
35export const assertStreamOutput = async (t, stream, expectedOutput = foobarString) => {
36 t.is(await text(stream), expectedOutput);

Callers 9

writable.jsFile · 0.90
testStdinAbortFunction · 0.90
testStdinErrorFunction · 0.90
assertStdoutAbortFunction · 0.90
duplex.jsFile · 0.90
readable.jsFile · 0.90
testStdoutErrorFunction · 0.90
testStdinAbortWritesFunction · 0.90
testStdinErrorWritesFunction · 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…