function mkConfigBase(url) {
  /**
   * @param {string} componentName
   * @param {Object?} data
   */
  return (componentName, data) => ({ testPath: dirname(fileURLToPath(url)), componentName, data })
}
Get directory path from url and return function for usage with {@linkcode mountTestComponent}
@param {Url} url - `import.meta.url` to get the test directory