@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.
- package/dist/es/cli/index.mjs +8 -5
- package/dist/es/cli/index.mjs.map +1 -1
- package/dist/es/test-cli.mjs +9 -6
- package/dist/es/test-cli.mjs.map +1 -1
- package/dist/lib/cli/index.js +8 -5
- package/dist/lib/cli/index.js.map +1 -1
- package/dist/lib/test-cli.js +9 -6
- package/dist/lib/test-cli.js.map +1 -1
- package/package.json +13 -13
package/dist/lib/test-cli.js
CHANGED
|
@@ -29,7 +29,7 @@ var __webpack_modules__ = {
|
|
|
29
29
|
},
|
|
30
30
|
"./package.json" (module) {
|
|
31
31
|
module.exports = {
|
|
32
|
-
rE: "1.15.
|
|
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
|
-
|
|
495
|
-
|
|
496
|
-
|
|
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;
|