@@ -33,7 +33,6 @@ test('does not skip download in standalone package', function (t) {
33
33
34
34
function run ( t , mode , args , cb ) {
35
35
const addon = tempy . directory ( )
36
- const logfile = path . join ( addon , 'prebuild-install.log' )
37
36
let cwd = addon
38
37
39
38
writePackage ( addon , {
@@ -62,19 +61,13 @@ function run (t, mode, args, cb) {
62
61
npm_config_addon_binary_host : 'http://localhost:1234' ,
63
62
npm_config_prefer_offline : 'true' ,
64
63
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 ,
68
65
npm_config_loglevel : 'info'
69
66
} )
70
67
71
- exec ( npm + ' install' , { cwd, env } , function ( err ) {
68
+ exec ( npm + ' install' , { cwd, env } , function ( err , stdout , stderr ) {
72
69
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 ) )
78
71
} )
79
72
}
80
73
0 commit comments