(t, getSubprocess, expectedStdout)
| 7 | setFixtureDirectory(); |
| 8 | |
| 9 | const testScriptStdoutSync = (t, getSubprocess, expectedStdout) => { |
| 10 | const {stdout} = getSubprocess(); |
| 11 | t.is(stdout, expectedStdout); |
| 12 | }; |
| 13 | |
| 14 | test('$.sync`...`', testScriptStdoutSync, () => $.sync`echo.js foo bar`, 'foo\nbar'); |
| 15 | test('$.s`...`', testScriptStdoutSync, () => $.s`echo.js foo bar`, 'foo\nbar'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…