if (process.env.MOCHA === '1') {
  // If testing from CLI, use noop logger, to not interfere with the mocha reporter
  // (see issues mochajs/mocha#1998, mochajs/mocha#2107, etc.)

  // code only uses these methods, so this should be enough
  global.logger = {error () {}, warn () {}, info () {}}
} else {
  // Else make a stderr-only console, so that you can redirect the CLI output to a
  // file (see issue #73)
  global.logger = new console.Console(process.stderr)
}

/* istanbul ignore else: coverage tools always in testing environment */
if (process.env.MOCHA === '1') {
  // If testing from CLI, use noop logger, to not interfere with the mocha reporter
  // (see issues mochajs/mocha#1998, mochajs/mocha#2107, etc.)

  // code only uses these methods, so this should be enough
  global.logger = {error () {}, warn () {}, info () {}}
} else {
  // Else make a stderr-only console, so that you can redirect the CLI output to a
  // file (see issue #73)
  global.logger = new console.Console(process.stderr)
}

Fix case for codecov tools
[package:test] Fix case for codecov tools

Add comment to skip unreachable branch
