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

Function testFd3InheritOutput

test/stdio/native-fd.js:14–17  ·  view source on GitHub ↗
(t, stdioOption, isSync)

Source from the content-addressed store, hash-verified

12const isWindows = platform === 'win32';
13
14const testFd3InheritOutput = async (t, stdioOption, isSync) => {
15 const {stdio} = await nestedSubprocess('noop-fd.js', ['3', foobarString], {...getStdio(3, stdioOption), isSync}, fullStdio);
16 t.is(stdio[3], foobarString);
17};
18
19test('stdio[*] output can use "inherit"', testFd3InheritOutput, 'inherit', false);
20test('stdio[*] output can use ["inherit"]', testFd3InheritOutput, ['inherit'], false);

Callers

nothing calls this directly

Calls 2

nestedSubprocessFunction · 0.90
getStdioFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…