File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const getExpectedString = (ex: ExampleCall) => {
1818 return ex . expectedResult ? exRes : resSchemaID ;
1919} ;
2020
21- class ConsoleReporter extends Reporter {
21+ class ConsoleReporter implements Reporter {
2222
2323 onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) { }
2424 onTestBegin ( options : IOptions , exampleCall : ExampleCall ) { }
Original file line number Diff line number Diff line change 11import { ExampleCall , IOptions } from '../coverage' ;
22import Reporter from './reporter' ;
33
4- class EmptyReporter extends Reporter {
4+ class EmptyReporter implements Reporter {
55 onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) {
66 console . log ( `Starting the run with ${ exampleCalls . length } tests` ) ;
77 }
Original file line number Diff line number Diff line change 11import { ExampleCall , IOptions } from '../coverage' ;
22import Reporter from './reporter' ;
33
4- class JsonReporter extends Reporter {
4+ class JsonReporter implements Reporter {
55 onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) { }
66 onTestBegin ( options : IOptions , exampleCall : ExampleCall ) { }
77
Original file line number Diff line number Diff line change 11import { ExampleCall , IOptions } from '../coverage' ;
22import Reporter from './reporter' ;
33
4- class RawReporter extends Reporter {
4+ class RawReporter implements Reporter {
55 onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) { }
66 onTestBegin ( options : IOptions , exampleCall : ExampleCall ) { }
77
Original file line number Diff line number Diff line change 11import { ExampleCall , IOptions } from "../coverage" ;
22
3- abstract class Reporter {
4- onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) { }
5- onTestBegin ( options : IOptions , exampleCall : ExampleCall ) { }
6- onTestEnd ( options : IOptions , exampleCall : ExampleCall ) { }
7- onEnd ( options : IOptions , exampleCalls : ExampleCall [ ] ) { }
3+ interface Reporter {
4+ onBegin ( options : IOptions , exampleCalls : ExampleCall [ ] ) : void ;
5+ onTestBegin ( options : IOptions , exampleCall : ExampleCall ) : void ;
6+ onTestEnd ( options : IOptions , exampleCall : ExampleCall ) : void ;
7+ onEnd ( options : IOptions , exampleCalls : ExampleCall [ ] ) : void ;
88}
99
1010export default Reporter ;
You can’t perform that action at this time.
0 commit comments