Allow code coverage command to succeed again (#4054)

This commit is contained in:
Chris LaFreniere
2019-02-15 12:07:52 -10:00
committed by GitHub
parent 4843480fbf
commit ea0c326d3d

View File

@@ -129,7 +129,7 @@ function main() {
});
}
let remapIgnores = /\b((winjs\.base)|(marked)|(raw\.marked)|(nls)|(css))\.js$/;
let remapIgnores = /\b((winjs\.base)|(filters\.perf\.data)|(performance)|(marked)|(raw\.marked)|(nls)|(css))\.js$/;
var remappedCoverage = i_remap(global.__coverage__, { exclude: remapIgnores }).getFinalCoverage();
@@ -170,6 +170,7 @@ function main() {
collector.add(finalCoverage);
var coveragePath = path.join(path.dirname(__dirname), '.build', 'coverage');
console.log('coverage folder is at: '.concat(coveragePath));
var reportTypes = [];
if (argv.run || argv.runGlob) {
// single file running