function searchPrettierConfig(startDirectory, options = {}) {
  startDirectory = startDirectory
    ? path.resolve(startDirectory)
    : process.cwd();

  const stopDirectory = mockable.getPrettierConfigSearchStopDirectory();

  const search = getSearchFunction(stopDirectory);

  return search(startDirectory, { cache: options.shouldCache });
}
@param {string} startDirectory
@param {{shouldCache?: boolean}} options
@returns {Promise<string | void>}