diff --git a/test/core.test.js b/test/core.test.js index 62aea0588c..b002075349 100644 --- a/test/core.test.js +++ b/test/core.test.js @@ -279,6 +279,27 @@ describe('core', () => { assert.equal(r1, r2) }) + test('mixed', async () => { + assert.equal( + ( + await $({ + quiet: true, + stdio: ['inherit', 'pipe', 'ignore'], + })`>&2 echo error` + ).toString(), + '' + ) + assert.equal( + ( + await $({ halt: true })`>&2 echo error` + .stdio('inherit', 'pipe', 'ignore') + .quiet() + .run() + ).toString(), + '' + ) + }) + test('file stream as stdout', async () => { const createWriteStream = (f) => { const stream = fs.createWriteStream(f)