code: function configureDefaults(options) {
    debug(options);
    options = options || {};
    options = options.reporterOptions || {};
    options.mochaFile = getSetting(options.mochaFile, 'MOCHA_FILE', 'test-results.xml');
    options.attachments = getSetting(options.attachments, 'ATTACHMENTS', false);
    options.antMode = getSetting(options.antMode, 'ANT_MODE', false);
    options.jenkinsMode = getSetting(options.jenkinsMode, 'JENKINS_MODE', false);
    options.properties = getSetting(options.properties, 'PROPERTIES', null, parsePropertiesFromEnv);
    options.toConsole = !!options.toConsole;
    options.rootSuiteTitle = options.rootSuiteTitle || 'Root Suite';
    options.testsuitesTitle = options.testsuitesTitle || 'Mocha Tests';
  
    if (options.antMode) {
      updateOptionsForAntMode(options);
    }
  
    if (options.jenkinsMode) {
      updateOptionsForJenkinsMode(options);
    }
  
    options.suiteTitleSeparedBy = options.suiteTitleSeparedBy || ' ';
    options.suiteTitleSeparatedBy = options.suiteTitleSeparatedBy || options.suiteTitleSeparedBy;
  
    return options;
  }
docs: eslint-disable-line no-control-regex