Skip to content

Commit

Permalink
fix: Do not exclude files with sourcemap from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Sep 6, 2017
1 parent b2ff72d commit 9b0546d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
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 9b0546d

Please sign in to comment.