Don't instrument any test code for coverage
This commit is contained in:
parent
eab8ca79dc
commit
34c591eeb3
|
@ -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