From 34c591eeb39986a5aca0fdbae0a21df9289d9771 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 9 Dec 2019 09:37:52 -0800 Subject: [PATCH] Don't instrument any test code for coverage --- test/coverage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/coverage.js b/test/coverage.js index bf7e7aa3f95..2c4c12ffaaf 100644 --- a/test/coverage.js +++ b/test/coverage.js @@ -17,7 +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')) { + if (minimatch(source, '**/test/**')) { // tests don't get instrumented return contents; }