Skip to content

Commit

Permalink
Added debug msg whether coverage is in reporters (#396)
Browse files Browse the repository at this point in the history
* Added debug msg whether coverage is in reporters

* Change log level to info if coverage is not included in reporters
  • Loading branch information
abbr authored and johnjbarton committed Dec 9, 2019
1 parent d3f53e3 commit b23664e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/preprocessor.js
Expand Up @@ -84,10 +84,12 @@ function createCoveragePreprocessor (logger, basePath, reporters = [], coverageR

// if coverage reporter is not used, do not preprocess the files
if (!reporters.includes('coverage')) {
log.info('coverage not included in reporters %s', reporters)
return function (content, _, done) {
done(content)
}
}
log.debug('coverage included in reporters %s', reporters)

// check instrumenter override requests
function checkInstrumenters () {
Expand Down

0 comments on commit b23664e

Please sign in to comment.