File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ export class WebSocketReporter implements Reporter {
200
200
if ( this . clients . size === 0 )
201
201
return
202
202
this . clients . forEach ( ( client ) => {
203
- client . onCollected ?.( files ) . catch ( noop )
203
+ client . onCollected ?.( files ) ? .catch ?. ( noop )
204
204
} )
205
205
}
206
206
@@ -222,25 +222,25 @@ export class WebSocketReporter implements Reporter {
222
222
} )
223
223
224
224
this . clients . forEach ( ( client ) => {
225
- client . onTaskUpdate ?.( packs ) . catch ( noop )
225
+ client . onTaskUpdate ?.( packs ) ? .catch ?. ( noop )
226
226
} )
227
227
}
228
228
229
229
onFinished ( files ?: File [ ] , errors ?: unknown [ ] ) {
230
230
this . clients . forEach ( ( client ) => {
231
- client . onFinished ?.( files , errors ) . catch ( noop )
231
+ client . onFinished ?.( files , errors ) ? .catch ?. ( noop )
232
232
} )
233
233
}
234
234
235
235
onFinishedReportCoverage ( ) {
236
236
this . clients . forEach ( ( client ) => {
237
- client . onFinishedReportCoverage ?.( ) . catch ( noop )
237
+ client . onFinishedReportCoverage ?.( ) ? .catch ?. ( noop )
238
238
} )
239
239
}
240
240
241
241
onUserConsoleLog ( log : UserConsoleLog ) {
242
242
this . clients . forEach ( ( client ) => {
243
- client . onUserConsoleLog ?.( log ) . catch ( noop )
243
+ client . onUserConsoleLog ?.( log ) ? .catch ?. ( noop )
244
244
} )
245
245
}
246
246
}
You can’t perform that action at this time.
0 commit comments