Skip to content

Commit

Permalink
fix(karma): Always initilize reporter adapters
Browse files Browse the repository at this point in the history
Intelij's plugin is using karma multi reporter which expects adaper array of each reporter to be initialized. Moving adaper array initialization before the isKarmaConfigAppropriate check in order to satisfy that contract.

re #254
  • Loading branch information
Branislav Abadzhimarinov committed Nov 15, 2021
1 parent 2ee148b commit 3ea5cee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const sabarivkaReporter: KarmaReporter = Object.defineProperty(
this.adapters = [];
if (!isKarmaConfigAppropriate(karmaConfig, logger)) {
return;

}
this.onBrowserComplete = getFileInstrumenterFn(karmaConfig);
},
Expand Down

0 comments on commit 3ea5cee

Please sign in to comment.