@@ -33,7 +33,6 @@ test('does not skip download in standalone package', function (t) {
3333
3434function run ( t , mode , args , cb ) {
3535 const addon = tempy . directory ( )
36- const logfile = path . join ( addon , 'prebuild-install.log' )
3736 let cwd = addon
3837
3938 writePackage ( addon , {
@@ -62,19 +61,13 @@ function run (t, mode, args, cb) {
6261 npm_config_addon_binary_host : 'http://localhost:1234' ,
6362 npm_config_prefer_offline : 'true' ,
6463 npm_config_audit : 'false' ,
65-
66- // Temporary workaround for npm 7 which swallows our output
67- npm_config_prebuild_install_logfile : logfile ,
64+ npm_config_foreground_scripts : true ,
6865 npm_config_loglevel : 'info'
6966 } )
7067
71- exec ( npm + ' install' , { cwd, env } , function ( err ) {
68+ exec ( npm + ' install' , { cwd, env } , function ( err , stdout , stderr ) {
7269 t . ifError ( err , 'no install error' )
73-
74- fs . readFile ( logfile , 'utf8' , function ( err , data ) {
75- t . ifError ( err , 'no read error' )
76- cb ( logs ( data ) )
77- } )
70+ cb ( logs ( stderr ) )
7871 } )
7972}
8073
0 commit comments