code: function createReport(coverage, opts) {
    const collector = new istanbul.Collector();
    const reporter = new istanbul.Reporter(null, opts.coverage);
    const sync = true;
  
    sh.echo('Creating reports...');
  
    collector.add(coverage);
    reporter.addAll(opts.reports);
    reporter.write(collector, sync, () => sh.echo('Reports created.'));
  }
docs: Create lcov and text reports.
  
  @param  {Object}             coverage the coverage object.
  @param  {{coverage: string}} opts     coverage options