handleUnmatchedFiles = (mocha, unmatchedFiles) => {
  if (unmatchedFiles.length === 0) {
    return;
  }

  unmatchedFiles.forEach(({pattern, absolutePath}) => {
    console.error(
      pc.yellow(
        `Warning: Cannot find any files matching pattern "${pattern}" at the absolute path "${absolutePath}"`
      )
    );
  });
  console.log(
    'No test file(s) found with the given pattern, exiting with code 1'
  );

  return mocha.run(exitMocha(1));
}
Logs errors and exits the app if unmatched files exist
@param {Mocha} mocha - Mocha instance
@param {UnmatchedFile} unmatchedFiles - object containing unmatched file paths
@returns {Promise<Runner>}
@private