File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ for (const npmDir of versions) {
2222 spawnSync ( NPM , [ 'install' , '--silent' ] , {
2323 cwd : npmPath ,
2424 signal : abortSignal ,
25- stdio : 'ignore'
25+ // stdio: 'ignore'
26+ stdio : 'pipe'
2627 } )
2728
2829 describe ( `Socket npm wrapper for ${ npmDir } ` , ( ) => {
2930 // Lazily access constants.rootBinPath.
30- const entryPath = path . join ( constants . rootBinPath , 'cli.js' )
31+ const entryPath = path . join ( constants [ ' rootBinPath' ] , 'cli.js' )
3132
3233 it ( 'should bail on new typosquat' , async ( ) => {
3334 await new Promise < void > ( ( resolve , reject ) => {
@@ -44,7 +45,7 @@ for (const npmDir of versions) {
4445 }
4546 )
4647
47- spawnPromise . process . stderr . on ( 'data' , buffer => {
48+ spawnPromise . process . stderr . on ( 'data' , ( buffer : Buffer ) => {
4849 if ( buffer . toString ( ) . includes ( 'Possible typosquat attack' ) ) {
4950 spawnPromise . process . kill ( 'SIGINT' )
5051 resolve ( )
You can’t perform that action at this time.
0 commit comments