packages/tools/index.js
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.'));
}
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.'));
}
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.' ) ) ; }
Create lcov and text reports.

@param  {Object}             coverage the coverage object.
@param  {{coverage: string}} opts     coverage options
Create lcov and text reports .