File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,8 @@ export abstract class BaseReporter implements Reporter {
174
174
if ( ! this . shouldLog ( log ) )
175
175
return
176
176
const task = log . taskId ? this . ctx . state . idMap . get ( log . taskId ) : undefined
177
- this . ctx . logger . log ( c . gray ( log . type + c . dim ( ` | ${ task ? getFullName ( task , c . dim ( ' > ' ) ) : 'unknown test' } ` ) ) )
178
- process [ log . type ] . write ( `${ log . content } \n` )
177
+ const header = c . gray ( log . type + c . dim ( ` | ${ task ? getFullName ( task , c . dim ( ' > ' ) ) : 'unknown test' } ` ) )
178
+ process [ log . type ] . write ( `${ header } \n ${ log . content } \n` )
179
179
}
180
180
181
181
shouldLog ( log : UserConsoleLog ) {
Original file line number Diff line number Diff line change @@ -76,12 +76,10 @@ export async function setupConsoleLogSpy() {
76
76
if ( ! buffer )
77
77
return
78
78
const content = buffer . map ( i => String ( i ) ) . join ( '' )
79
- if ( ! content . trim ( ) )
80
- return
81
79
const timer = timers . get ( taskId ) !
82
80
rpc ( ) . onUserConsoleLog ( {
83
81
type : 'stdout' ,
84
- content,
82
+ content : content || '<empty line>' ,
85
83
taskId,
86
84
time : timer . stdoutTime || RealDate . now ( ) ,
87
85
size : buffer . length ,
@@ -94,12 +92,10 @@ export async function setupConsoleLogSpy() {
94
92
if ( ! buffer )
95
93
return
96
94
const content = buffer . map ( i => String ( i ) ) . join ( '' )
97
- if ( ! content . trim ( ) )
98
- return
99
95
const timer = timers . get ( taskId ) !
100
96
rpc ( ) . onUserConsoleLog ( {
101
97
type : 'stderr' ,
102
- content,
98
+ content : content || '<empty line>' ,
103
99
taskId,
104
100
time : timer . stderrTime || RealDate . now ( ) ,
105
101
size : buffer . length ,
You can’t perform that action at this time.
0 commit comments