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

Function assertSubprocessError

test/helpers/convert.js:60–60  ·  view source on GitHub ↗
(t, subprocess, error)

Source from the content-addressed store, hash-verified

58export const assertStreamReadError = (t, stream, error) => assertPromiseError(t, text(stream), error);
59
60export const assertSubprocessError = (t, subprocess, error) => assertPromiseError(t, subprocess, error);
61
62export const assertPromiseError = async (t, promise, error) => {
63 const thrownError = await t.throwsAsync(promise);

Callers 10

writable.jsFile · 0.90
testStdinAbortFunction · 0.90
testStdinErrorFunction · 0.90
duplex.jsFile · 0.90
readable.jsFile · 0.90
testStdoutErrorFunction · 0.90
testStdinAbortWritesFunction · 0.90
testStdinErrorWritesFunction · 0.90
concurrent.jsFile · 0.90
testSubprocessFailFunction · 0.90

Calls 1

assertPromiseErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…