Added more test cases which common js libraries uses .pipe()

This commit is contained in:
Napalys Klicius
2025-05-23 12:30:49 +02:00
parent b10a9481f3
commit 15ff7cb41a
5 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
const execa = require('execa');
(async () => {
const first = execa('node', ['empty.js']);
const second = execa('node', ['stdin.js']);
first.stdout.pipe(second.stdin); // $SPURIOUS:Alert
const {stdout} = await second;
console.log(stdout);
})();