MCPcopy Create free account
hub / github.com/sindresorhus/execa / testMultipleInheritOutput

Function testMultipleInheritOutput

test/stdio/duplicate.js:148–151  ·  view source on GitHub ↗
(t, isSync)

Source from the content-addressed store, hash-verified

146test('Can re-use same web Writable stream on different output file descriptors', testMultipleStreamOutput, getWebWritableStream);
147
148const testMultipleInheritOutput = async (t, isSync) => {
149 const {stdout} = await nestedSubprocess('noop-both.js', [foobarString], {...getDifferentOutputs(1), isSync});
150 t.is(stdout, `${foobarString}\n${foobarString}`);
151};
152
153test('Can re-use same parent file descriptor on different output file descriptors', testMultipleInheritOutput, false);
154test('Can re-use same parent file descriptor on different output file descriptors, sync', testMultipleInheritOutput, true);

Callers

nothing calls this directly

Calls 2

nestedSubprocessFunction · 0.90
getDifferentOutputsFunction · 0.85

Tested by

no test coverage detected