Skip to content

Commit

Permalink
fix: apply exclude logic before remapping coverage (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg authored and bcoe committed Sep 6, 2017
1 parent b2ff72d commit a10d478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -420,10 +420,10 @@ NYC.prototype._getCoverageMapFromAllCoverageFiles = function () {
this.loadReports().forEach(function (report) {
map.merge(report)
})
map.data = this.sourceMaps.remapCoverage(map.data)
map.filter(function (filename) {
return _this.exclude.shouldInstrument(filename)
})
map.data = this.sourceMaps.remapCoverage(map.data)
return map
}

Expand Down

0 comments on commit a10d478

Please sign in to comment.