From 9b0546d97b2d04f3fe8e12bc19a29ba6843afad0 Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Tue, 5 Sep 2017 21:34:28 -0400 Subject: [PATCH] fix: Do not exclude files with sourcemap from coverage Fix #666 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f9b38c5e9..b31c1abcf 100755 --- a/index.js +++ b/index.js @@ -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 }