We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63403c3 commit e666e11Copy full SHA for e666e11
test/core.test.js
@@ -279,6 +279,27 @@ describe('core', () => {
279
assert.equal(r1, r2)
280
})
281
282
+ test('mixed', async () => {
283
+ assert.equal(
284
+ (
285
+ await $({
286
+ quiet: true,
287
+ stdio: ['inherit', 'pipe', 'ignore'],
288
+ })`>&2 echo error; echo ok`
289
+ ).toString(),
290
+ 'ok\n'
291
+ )
292
293
294
+ await $({ halt: true })`>&2 echo error; echo ok`
295
+ .stdio('inherit', 'ignore', 'pipe')
296
+ .quiet()
297
+ .run()
298
299
+ 'error\n'
300
301
+ })
302
+
303
test('file stream as stdout', async () => {
304
const createWriteStream = (f) => {
305
const stream = fs.createWriteStream(f)
0 commit comments