diff --git a/packages/jest-cli/src/test_runner.js b/packages/jest-cli/src/test_runner.js index efaf6ad5c5be..73f749c1a33b 100644 --- a/packages/jest-cli/src/test_runner.js +++ b/packages/jest-cli/src/test_runner.js @@ -297,10 +297,6 @@ class TestRunner { this._setupDefaultReporters(); } - if (reporters && Array.isArray(reporters)) { - this._addCustomReporters(reporters); - } - if (collectCoverage) { this.addReporter(new CoverageReporter(this._globalConfig)); } @@ -310,6 +306,10 @@ class TestRunner { new NotifyReporter(this._globalConfig, this._options.startRun), ); } + + if (reporters && Array.isArray(reporters)) { + this._addCustomReporters(reporters); + } } _setupDefaultReporters() {