code: function mock (mock) {
    if (mock === false) {
      mocking = false
    } else {
      mocking = true
      cli.stderr = ''
      cli.stdout = ''
    }
  }
docs: mock will make {@link log} and {@link error}
  stop printing to stdout and stderr and start writing to the
  stdout and stderr strings.