Skip to content

Commit 7711a5c

Browse files
authored
test: stdio inherit (#941)
relates #940
1 parent 0f2be5b commit 7711a5c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/core.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ describe('core', () => {
273273
assert.equal((await p).stdout, '')
274274
})
275275

276+
test('inherit', async () => {
277+
await $({ stdio: 'inherit' })`ls`
278+
})
279+
276280
test('file stream as stdout', async () => {
277281
const createWriteStream = (f) => {
278282
const stream = fs.createWriteStream(f)

test/smoke/bun.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ describe('bun', () => {
2626
const p = await $({ nothrow: true })`echo foo; exit 3`
2727
assert.match(p.message, /exit code: 3/)
2828
})
29+
30+
test('stdio: inherit', async () => {
31+
await $({ stdio: 'inherit' })`ls`
32+
})
2933
})

0 commit comments

Comments
 (0)