From 42ff30515c1d1342278496a1e8c4325d79be3004 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 9 Dec 2019 09:01:10 -0800 Subject: [PATCH] Don't instrument any test code for coverage (#8598) --- test/coverage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/coverage.js b/test/coverage.js index 156cb21b93..f25c4956fb 100644 --- a/test/coverage.js +++ b/test/coverage.js @@ -17,8 +17,7 @@ const REPO_PATH = toUpperDriveLetter(path.join(__dirname, '..')); exports.initialize = function (loaderConfig) { const instrumenter = iLibInstrument.createInstrumenter(); loaderConfig.nodeInstrumenter = function (contents, source) { - if (minimatch(source, '**/test/**/*.test.js')) { - // tests don't get instrumented + if (minimatch(source, '**/test/**')) { // {{SQL CARBON EDIT}} Don't instrument test helper stuff either return contents; } // Try to find a .map file