Commit 7711a5c

Anton Golub <antongolub@antongolub.com>
2024-11-09 21:16:56
test: stdio inherit (#941)
relates #940
1 parent 0f2be5b
Changed files (2)
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)