File tree 2 files changed +8
-7
lines changed
packages/jest-reporters/src
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 42
42
- ` [jest-leak-detector] ` [ ** BREAKING** ] Use ` weak-napi ` instead of ` weak ` package ([ #8686 ] ( https://github.com/facebook/jest/pull/8686 ) )
43
43
- ` [jest-mock] ` Fix for mockReturnValue overriding mockImplementationOnce ([ #8398 ] ( https://github.com/facebook/jest/pull/8398 ) )
44
44
- ` [jest-reporters] ` Make node-notifier an optional dependency ([ #8918 ] ( https://github.com/facebook/jest/pull/8918 ) )
45
+ - ` [jest-reporters] ` Make all arguments to methods on ` BaseReporter ` optional ([ #9159 ] ( https://github.com/facebook/jest/pull/9159 ) )
45
46
- ` [jest-resolve] ` : Set MODULE_NOT_FOUND as error code when module is not resolved from paths ([ #8487 ] ( https://github.com/facebook/jest/pull/8487 ) )
46
47
- ` [jest-snapshot] ` Remove only the added newlines in multiline snapshots ([ #8859 ] ( https://github.com/facebook/jest/pull/8859 ) )
47
48
- ` [jest-snapshot] ` Distinguish empty string from external snapshot not written ([ #8880 ] ( https://github.com/facebook/jest/pull/8880 ) )
Original file line number Diff line number Diff line change @@ -18,21 +18,21 @@ export default class BaseReporter implements Reporter {
18
18
process . stderr . write ( message + '\n' ) ;
19
19
}
20
20
21
- onRunStart ( _results : AggregatedResult , _options : ReporterOnStartOptions ) {
21
+ onRunStart ( _results ? : AggregatedResult , _options ? : ReporterOnStartOptions ) {
22
22
preRunMessageRemove ( process . stderr ) ;
23
23
}
24
24
25
25
onTestResult (
26
- _test : Test ,
27
- _testResult : TestResult ,
28
- _results : AggregatedResult ,
26
+ _test ? : Test ,
27
+ _testResult ? : TestResult ,
28
+ _results ? : AggregatedResult ,
29
29
) { }
30
30
31
- onTestStart ( _test : Test ) { }
31
+ onTestStart ( _test ? : Test ) { }
32
32
33
33
onRunComplete (
34
- _contexts : Set < Context > ,
35
- _aggregatedResults : AggregatedResult ,
34
+ _contexts ? : Set < Context > ,
35
+ _aggregatedResults ? : AggregatedResult ,
36
36
) : Promise < void > | void { }
37
37
38
38
protected _setError ( error : Error ) {
You can’t perform that action at this time.
0 commit comments