@@ -136,7 +136,7 @@ export type JsonFullResult = {
136136} ;
137137
138138export type JsonEvent = JsonOnConfigureEvent | JsonOnBlobReportMetadataEvent | JsonOnEndEvent | JsonOnExitEvent | JsonOnProjectEvent | JsonOnBeginEvent | JsonOnTestBeginEvent
139- | JsonOnTestEndEvent | JsonOnStepBeginEvent | JsonOnStepEndEvent | JsonOnAttachEvent | JsonOnErrorEvent | JsonOnTestPausedEvent | JsonOnStdIOEvent ;
139+ | JsonOnTestEndEvent | JsonOnStepBeginEvent | JsonOnStepEndEvent | JsonOnAttachEvent | JsonOnErrorEvent | JsonOnStdIOEvent ;
140140
141141export type JsonOnConfigureEvent = {
142142 method : 'onConfigure' ;
@@ -170,15 +170,6 @@ export type JsonOnTestBeginEvent = {
170170 } ;
171171} ;
172172
173- export type JsonOnTestPausedEvent = {
174- method : 'onTestPaused' ;
175- params : {
176- testId : string ;
177- resultId : string ;
178- errors : reporterTypes . TestError [ ] ;
179- } ;
180- } ;
181-
182173export type JsonOnTestEndEvent = {
183174 method : 'onTestEnd' ;
184175 params : {
@@ -296,10 +287,6 @@ export class TeleReporterReceiver {
296287 this . _onTestBegin ( params . testId , params . result ) ;
297288 return ;
298289 }
299- if ( method === 'onTestPaused' ) {
300- this . _onTestPaused ( params . testId , params . resultId , params . errors ) ;
301- return ;
302- }
303290 if ( method === 'onTestEnd' ) {
304291 this . _onTestEnd ( params . test , params . result ) ;
305292 return ;
@@ -375,15 +362,6 @@ export class TeleReporterReceiver {
375362 this . _reporter . onTestBegin ?.( test , testResult ) ;
376363 }
377364
378- private _onTestPaused ( testId : string , resultId : string , errors : reporterTypes . TestError [ ] ) {
379- const test = this . _tests . get ( testId ) ! ;
380- const result = test . results . find ( r => r . _id === resultId ) ! ;
381-
382- result . errors . push ( ...errors ) ;
383- result . error = result . errors [ 0 ] ;
384- void this . _reporter . onTestPaused ?.( test , result ) ;
385- }
386-
387365 private _onTestEnd ( testEndPayload : JsonTestEnd , payload : JsonTestResultEnd ) {
388366 const test = this . _tests . get ( testEndPayload . testId ) ! ;
389367 test . timeout = testEndPayload . timeout ;
0 commit comments