@midscene/test 1.15.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ var __webpack_modules__ = {
29
29
  },
30
30
  "./package.json" (module) {
31
31
  module.exports = {
32
- rE: "1.15.0"
32
+ rE: "1.15.1"
33
33
  };
34
34
  }
35
35
  };
@@ -235,7 +235,6 @@ Each Node's returned \`data\` is saved on that Step's result. Results are not na
235
235
  };
236
236
  const external_node_url_namespaceObject = require("node:url");
237
237
  const api_namespaceObject = require("tsx/cjs/api");
238
- const esm_api_namespaceObject = require("tsx/esm/api");
239
238
  const NodeRegistry = test_runner_namespaceObject.NodeRegistry;
240
239
  const projectIdFromIndex = (index)=>`project-${index}`;
241
240
  const getDefaultExport = (loaded, absolutePath)=>{
@@ -491,10 +490,14 @@ Each Node's returned \`data\` is saved on that Step's result. Results are not na
491
490
  const extension = assertSupportedConfig(absolutePath);
492
491
  let loaded;
493
492
  try {
494
- loaded = '.mjs' === extension ? await import((0, external_node_url_namespaceObject.pathToFileURL)(absolutePath).href) : await (0, esm_api_namespaceObject.tsImport)((0, external_node_url_namespaceObject.pathToFileURL)(absolutePath).href, {
495
- parentURL: (0, external_node_url_namespaceObject.pathToFileURL)(`${(0, external_node_path_.dirname)(absolutePath)}${external_node_path_.sep}`).href,
496
- tsconfig: false
497
- });
493
+ if ('.mjs' === extension) loaded = await import((0, external_node_url_namespaceObject.pathToFileURL)(absolutePath).href);
494
+ else {
495
+ const { tsImport } = await import("tsx/esm/api");
496
+ loaded = await tsImport((0, external_node_url_namespaceObject.pathToFileURL)(absolutePath).href, {
497
+ parentURL: (0, external_node_url_namespaceObject.pathToFileURL)(`${(0, external_node_path_.dirname)(absolutePath)}${external_node_path_.sep}`).href,
498
+ tsconfig: false
499
+ });
500
+ }
498
501
  } catch (error) {
499
502
  try {
500
503
  if ('.mjs' === extension || !canRetryWithCjsLoader(error)) throw error;