code: function configureCodeCoverage (config) {
    if (process.argv.indexOf("--coverage") === -1) {
      console.warn("Code-coverage is not enabled");
      return;
    }
  
    config.reporters.push("coverage");
    config.coverageReporter = {
      reporters: [
        { type: "text-summary" },
        { type: "lcov" }
      ]
    };
  
    config.files = config.files.map(function (file) {
      if (typeof file === "string") {
        file = file.replace(/^dist\/(.*)\.min\.js$/, "dist/$1.coverage.js");
      }
      return file;
    });
  }
docs: Configures the code-coverage reporter