Skip to content

Commit a10d478

Browse files
pvdlgbcoe
authored andcommitted
fix: apply exclude logic before remapping coverage (#667)
1 parent b2ff72d commit a10d478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ NYC.prototype._getCoverageMapFromAllCoverageFiles = function () {
420420
this.loadReports().forEach(function (report) {
421421
map.merge(report)
422422
})
423-
map.data = this.sourceMaps.remapCoverage(map.data)
424423
map.filter(function (filename) {
425424
return _this.exclude.shouldInstrument(filename)
426425
})
426+
map.data = this.sourceMaps.remapCoverage(map.data)
427427
return map
428428
}
429429

0 commit comments

Comments
 (0)