Skip to content

Commit

Permalink
Setup custom reporters after default reporters (jestjs#4053)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronabramov authored and cpojer committed Jul 18, 2017
1 parent d0cc45d commit 0180b81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/jest-cli/src/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ class TestRunner {
this._setupDefaultReporters();
}

if (reporters && Array.isArray(reporters)) {
this._addCustomReporters(reporters);
}

if (collectCoverage) {
this.addReporter(new CoverageReporter(this._globalConfig));
}
Expand All @@ -310,6 +306,10 @@ class TestRunner {
new NotifyReporter(this._globalConfig, this._options.startRun),
);
}

if (reporters && Array.isArray(reporters)) {
this._addCustomReporters(reporters);
}
}

_setupDefaultReporters() {
Expand Down

0 comments on commit 0180b81

Please sign in to comment.