Skip to content

Commit b18277b

Browse files
committed
explicitly pipe output
1 parent cc6b57d commit b18277b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/socket-npm.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ for (const npmDir of versions) {
4444
signal: abortSignal
4545
}
4646
)
47+
spawnPromise.process.stdout.on('data', (buffer: Buffer) => {
48+
console.log(buffer.toString('utf8'))
49+
});
4750

4851
spawnPromise.process.stderr.on('data', (buffer: Buffer) => {
52+
console.error(buffer.toString('utf8'))
4953
if (buffer.toString().includes('Possible typosquat attack')) {
5054
spawnPromise.process.kill('SIGINT')
5155
resolve()

0 commit comments

Comments
 (0)