@wdio/mocha-framework 9.16.2 → 9.18.0
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/build/common.js +1 -1
- package/build/index.js +2 -2
- package/package.json +4 -4
package/build/common.js
CHANGED
|
@@ -79,7 +79,7 @@ function requireExternalModules(mods, loader = loadModule) {
|
|
|
79
79
|
if (!mod) {
|
|
80
80
|
return Promise.resolve();
|
|
81
81
|
}
|
|
82
|
-
mod = mod.
|
|
82
|
+
mod = mod.includes(":") ? mod.substring(mod.lastIndexOf(":") + 1) : mod;
|
|
83
83
|
if (mod.startsWith("./") && globalThis.process) {
|
|
84
84
|
mod = `${globalThis.process.cwd()}/${mod.slice(2)}`;
|
|
85
85
|
}
|
package/build/index.js
CHANGED
|
@@ -104,7 +104,7 @@ function requireExternalModules(mods, loader = loadModule) {
|
|
|
104
104
|
if (!mod) {
|
|
105
105
|
return Promise.resolve();
|
|
106
106
|
}
|
|
107
|
-
mod = mod.
|
|
107
|
+
mod = mod.includes(":") ? mod.substring(mod.lastIndexOf(":") + 1) : mod;
|
|
108
108
|
if (mod.startsWith("./") && globalThis.process) {
|
|
109
109
|
mod = `${globalThis.process.cwd()}/${mod.slice(2)}`;
|
|
110
110
|
}
|
|
@@ -232,7 +232,7 @@ Error: ${err.stack}`;
|
|
|
232
232
|
this._runner.suite.beforeAll(this.wrapHook("beforeSuite"));
|
|
233
233
|
this._runner.suite.afterAll(this.wrapHook("afterSuite"));
|
|
234
234
|
});
|
|
235
|
-
await executeHooksWithArgs("after", this._config.after, [runtimeError || result, this._capabilities, this._specs]);
|
|
235
|
+
await executeHooksWithArgs("after", this._config.after, [runtimeError || this._specLoadError || result, this._capabilities, this._specs]);
|
|
236
236
|
if (runtimeError || this._specLoadError) {
|
|
237
237
|
throw runtimeError || this._specLoadError;
|
|
238
238
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/mocha-framework",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.18.0",
|
|
4
4
|
"description": "A WebdriverIO plugin. Adapter for Mocha testing framework.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-mocha-framework",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/mocha": "^10.0.6",
|
|
40
40
|
"@types/node": "^20.11.28",
|
|
41
|
-
"@wdio/logger": "9.
|
|
41
|
+
"@wdio/logger": "9.18.0",
|
|
42
42
|
"@wdio/types": "9.16.2",
|
|
43
|
-
"@wdio/utils": "9.
|
|
43
|
+
"@wdio/utils": "9.18.0",
|
|
44
44
|
"mocha": "^10.3.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a515cdf9ce892da87708c290dd2b05b051bbe602"
|
|
50
50
|
}
|