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

Function testScriptStdoutSync

test/methods/script.js:9–12  ·  view source on GitHub ↗
(t, getSubprocess, expectedStdout)

Source from the content-addressed store, hash-verified

7setFixtureDirectory();
8
9const testScriptStdoutSync = (t, getSubprocess, expectedStdout) => {
10 const {stdout} = getSubprocess();
11 t.is(stdout, expectedStdout);
12};
13
14test('$.sync`...`', testScriptStdoutSync, () => $.sync`echo.js foo bar`, 'foo\nbar');
15test('$.s`...`', testScriptStdoutSync, () => $.s`echo.js foo bar`, 'foo\nbar');

Callers

nothing calls this directly

Calls 1

getSubprocessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…