File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 21
21
console . warn ( 'FUSE bindings are not available on this platform.' )
22
22
}
23
23
const log = require ( './lib/log' ) . child ( { component : 'server' } )
24
-
25
24
const argv = extractArguments ( )
26
25
27
26
class HyperdriveDaemon extends EventEmitter {
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ module.exports = pino({
12
12
name : 'hyperdrive' ,
13
13
level : argv [ 'log-level' ] || 'info' ,
14
14
enabled : true ,
15
- } , LOGFILE )
15
+ } , ( process . env [ 'NODE_ENV' ] === 'test' ) ? pino . destination ( 2 ) : LOGFILE )
Original file line number Diff line number Diff line change 7
7
"hyperdrive" : " ./cli.js"
8
8
},
9
9
"scripts" : {
10
- "test" : " tape test/*.js"
10
+ "test" : " NODE_ENV=test tape test/*.js"
11
11
},
12
12
"repository" : {
13
13
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments