File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
tap-snapshots/test/lib/utils Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ process.on('exit', code => {
58
58
if ( ! code )
59
59
log . info ( 'ok' )
60
60
else {
61
+ log . verbose ( 'code' , code )
61
62
if ( ! exitHandlerCalled ) {
62
63
log . error ( '' , 'Exit handler never called!' )
63
64
console . error ( '' )
@@ -66,7 +67,6 @@ process.on('exit', code => {
66
67
// TODO this doesn't have an npm.config.loaded guard
67
68
writeLogFile ( )
68
69
}
69
- log . verbose ( 'code' , code )
70
70
}
71
71
// In timing mode we always write the log file
72
72
if ( npm . config && npm . config . loaded && npm . config . get ( 'timing' ) && ! wroteLogFile )
Original file line number Diff line number Diff line change 6
6
*/
7
7
'use strict'
8
8
exports [ `test/lib/utils/exit-handler.js TAP handles unknown error > should have expected log contents for unknown error 1` ] = `
9
- 0 verbose code 1
10
- 1 error foo A complete log of this run can be found in:
11
- 1 error foo {CWD}/test/lib/utils/tap-testdir-exit-handler/_logs/expecteddate-debug.log
12
- 2 verbose stack Error: ERROR
13
- 3 verbose cwd {CWD}
14
- 4 verbose Foo 1.0.0
15
- 5 verbose argv "/ node" "{CWD}/test/lib/utils/exit-handler.js"
16
- 6 verbose node v1.0.0
17
- 7 verbose npm v1.0.0
18
- 8 error foo code ERROR
9
+ 0 error foo A complete log of this run can be found in:
10
+ 0 error foo {CWD}/test/lib/utils/tap-testdir-exit-handler/_logs/expecteddate-debug.log
11
+ 1 verbose stack Error: ERROR
12
+ 2 verbose cwd {CWD}
13
+ 3 verbose Foo 1.0.0
14
+ 4 verbose argv "/node" "{CWD}/test/lib/utils/exit-handler.js"
15
+ 5 verbose node v1.0.0
16
+ 6 verbose npm v1.0.0
17
+ 7 error foo code ERROR
18
+ 8 error foo ERR ERROR
19
19
9 error foo ERR ERROR
20
- 10 error foo ERR ERROR
21
- 11 verbose exit 1
20
+ 10 verbose exit 1
22
21
23
22
`
You can’t perform that action at this time.
0 commit comments