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

Function testOverflowStreamArraySync

test/stdio/native-fd.js:68–72  ·  view source on GitHub ↗
(t, fdNumber)

Source from the content-addressed store, hash-verified

66};
67
68const testOverflowStreamArraySync = (t, fdNumber) => {
69 t.throws(() => {
70 execaSync('noop-fd.js', [fdNumber, foobarString], getStdio(fdNumber, [4, 'pipe']));
71 }, {code: getInvalidFdCode()});
72};
73
74test('stdout cannot use 4+ and another value, sync', testOverflowStreamArraySync, 1);
75test('stderr cannot use 4+ and another value, sync', testOverflowStreamArraySync, 2);

Callers

nothing calls this directly

Calls 2

getStdioFunction · 0.90
getInvalidFdCodeFunction · 0.85

Tested by

no test coverage detected