Commit 7711a5c
Changed files (2)
test
smoke
test/smoke/bun.test.js
@@ -26,4 +26,8 @@ describe('bun', () => {
const p = await $({ nothrow: true })`echo foo; exit 3`
assert.match(p.message, /exit code: 3/)
})
+
+ test('stdio: inherit', async () => {
+ await $({ stdio: 'inherit' })`ls`
+ })
})
test/core.test.js
@@ -273,6 +273,10 @@ describe('core', () => {
assert.equal((await p).stdout, '')
})
+ test('inherit', async () => {
+ await $({ stdio: 'inherit' })`ls`
+ })
+
test('file stream as stdout', async () => {
const createWriteStream = (f) => {
const stream = fs.createWriteStream(f)