Skip to content

Commit

Permalink
Filter out undefined classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannseman committed Feb 22, 2020
1 parent 2fa7814 commit 3fa61e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cobertura.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function processCoverage(path, options) {
const { packages } = coverage;
const classes = processPackages(packages);
const files = classes
.filter(Boolean)
.map(klass => {
return {
...calculateRates(klass),
Expand Down

0 comments on commit 3fa61e4

Please sign in to comment.