lib/src/main.js
function getOptions(opts) {
  const mergedOptions = getMergedOptions(opts || {});

  // For saving JSON from mochawesome reporter
  if (mergedOptions.saveJson) {
    mergedOptions.jsonFile = `${getFilename(mergedOptions)}.json`;
  }

  mergedOptions.htmlFile = `${getFilename(mergedOptions)}.html`;
  return mergedOptions;
}
function getOptions(opts) {
  const mergedOptions = getMergedOptions(opts || {});

  // For saving JSON from mochawesome reporter
  if (mergedOptions.saveJson) {
    mergedOptions.jsonFile = `${getFilename(mergedOptions)}.json`;
  }

  mergedOptions.htmlFile = `${getFilename(mergedOptions)}.html`;
  return mergedOptions;
}
function getOptions ( opts ) { const mergedOptions = getMergedOptions ( opts || { } ) ; // For saving JSON from mochawesome reporter if ( mergedOptions . saveJson ) { mergedOptions . jsonFile = ` ${ getFilename ( mergedOptions ) } ` ; } mergedOptions . htmlFile = ` ${ getFilename ( mergedOptions ) } ` ; return mergedOptions ; }
Get report options by extending base options
with user provided options

@param {Object} opts Report options

@return {Object} User options merged with default options
Get report options by extending base options with user provided options