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

Function testSingleErrorOutput

test/transform/generator-error.js:36–44  ·  view source on GitHub ↗
(t, type, execaMethod)

Source from the content-addressed store, hash-verified

34test('WebTransform "transform" errors make subprocess fail', testThrowingGenerator, 'webTransform', false, execa);
35
36const testSingleErrorOutput = async (t, type, execaMethod) => {
37 await assertProcessError(t, type, execaMethod, transform => execaMethod('noop.js', {
38 stdout: [
39 generatorsMap[type].noop(false),
40 transform,
41 generatorsMap[type].noop(false),
42 ],
43 }));
44};
45
46test('Generators errors make subprocess fail even when other output generators do not throw', testSingleErrorOutput, 'generator', execa);
47test('Generators errors make subprocess fail even when other output generators do not throw, sync', testSingleErrorOutput, 'generator', execaSync);

Callers

nothing calls this directly

Calls 1

assertProcessErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…