Don't instrument any test code for coverage (#86608)
Don't instrument any test code for coverage
This commit is contained in:
commit
4e5a05c3fd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue