diff --git a/test/coverage.js b/test/coverage.js index 1964dfc4bd0..e01452047f5 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; }