Skip to content

Commit

Permalink
Merge pull request #51 from Lalem001/add-karma-coverage
Browse files Browse the repository at this point in the history
Add karma-coverage as valid istanbul reporter
  • Loading branch information
kopach committed Mar 24, 2020
2 parents 3313899 + 712be97 commit 865f83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function isIstanbulEnabled(coverageReporterConfig: ConfigOptions): boolean {
const withIstanbulReporter = (
reporters: ConfigOptions['reporters']
): boolean => {
return !!reporters && isIn(reporters, 'coverage-istanbul');
return !!reporters && (isIn(reporters, 'coverage') || isIn(reporters, 'coverage-istanbul'));
};

return structure({
Expand Down

0 comments on commit 865f83f

Please sign in to comment.