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

Function runWarningSubprocess

test/helpers/verbose.js:20–25  ·  view source on GitHub ↗
(t, isSync)

Source from the content-addressed store, hash-verified

18};
19
20export const runWarningSubprocess = async (t, isSync) => {
21 const {stderr, nestedResult} = await nestedSubprocess('noop-fail.js', ['1', foobarString], {verbose: 'short', reject: false, isSync});
22 t.true(nestedResult instanceof Error);
23 t.true(stderr.includes('exit code 2'));
24 return stderr;
25};
26
27export const runEarlyErrorSubprocess = async (t, isSync) => {
28 const {stderr, nestedResult} = await nestedSubprocess('noop.js', [foobarString], {verbose: 'short', cwd: true, isSync});

Callers 1

Calls 1

nestedSubprocessFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…