From 67658f6722a94661ff41c62baf91d36097c0dffd Mon Sep 17 00:00:00 2001 From: Christopher Livett Date: Thu, 16 Jun 2016 19:30:57 +0100 Subject: [PATCH] Filter out all node_modules Testing code coverage of Meteor on client-side is adding every .js file in the node_modules folder to the report. This will filter them out. --- server/coverage-data.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/coverage-data.js b/server/coverage-data.js index ac82b55..31f2206 100644 --- a/server/coverage-data.js +++ b/server/coverage-data.js @@ -56,11 +56,7 @@ if (IS_COVERAGE_ACTIVE) { return false; } } - if (filename.indexOf('/npm/node_modules') > 0) { - // this is a browser file? - return false; - } - if (filename.indexOf('node_modules/meteor') > 0) { + if (filename.indexOf('node_modules') > 0) { // this is a browser file? return false; }