code: function getFilename({ reportDir, reportFilename = 'mochawesome', timestamp }) {
    let ts = '';
    if (timestamp !== false && timestamp !== 'false') {
      const format = getTimestampFormat(timestamp);
      ts = `_${dateFormat(new Date(), format)}`
        // replace commas, spaces or comma-space combinations with underscores
        .replace(/(,\s*)|,|\s+/g, '_')
        // replace forward and back slashes with hyphens
        .replace(/\\|\//g, '-')
        // remove colons
        .replace(/:/g, '');
    }
    const filename = `${reportFilename.replace(fileExtRegex, '')}${ts}`;
    return path.resolve(process.cwd(), reportDir, filename);
  }
docs: Construct the path/name of the HTML/JSON file to be saved
  
  @param {Object} reportOptions Options object
  @param {string} reportOptions.reportDir Directory to save report to
  @param {string} reportOptions.reportFilename Filename to save report to
  @param {string} reportOptions.timestamp Timestamp format to be appended to the filename
  
  @return {string} Fully resolved path without extension