@wdio/runner 8.0.12 → 8.0.14
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/index.d.ts.map +1 -1
- package/build/reporter.js +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.d.ts.map +1 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +5 -8
- package/package.json +9 -9
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAGxE,MAAM,SAAS,CAAA;AAIhB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAgD;IACjE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA+B;IAE7C;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IAgLpE;;;;;;OAMG;YACW,YAAY;IAkC1B;;;;;OAKG;YACW,aAAa;IAkD3B;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;YACW,SAAS;IAmCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAsEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
|
package/build/reporter.js
CHANGED
|
@@ -51,7 +51,7 @@ export default class BaseReporter {
|
|
|
51
51
|
}
|
|
52
52
|
getLogFile(name) {
|
|
53
53
|
// clone the config to avoid changing original properties
|
|
54
|
-
|
|
54
|
+
const options = Object.assign({}, this._config);
|
|
55
55
|
let filename = `wdio-${this._cid}-${name}-reporter.log`;
|
|
56
56
|
const reporterOptions = this._config.reporters.find((reporter) => (Array.isArray(reporter) &&
|
|
57
57
|
(reporter[0] === name ||
|
package/build/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options, Capabilities, Services } from '@wdio/types';
|
|
2
|
-
import BaseReporter from './reporter.js';
|
|
2
|
+
import type BaseReporter from './reporter.js';
|
|
3
3
|
export type BeforeArgs = Parameters<Required<Services.HookFunctions>['before']>;
|
|
4
4
|
export type AfterArgs = Parameters<Required<Services.HookFunctions>['after']>;
|
|
5
5
|
export type BeforeSessionArgs = Parameters<Required<Services.HookFunctions>['beforeSession']>;
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,YAAY,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,YAAY,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,wBAAgB,YAAY,CACxB,IAAI,EAAE,YAAY,CAAC,gBAAgB,EACnC,SAAS,CAAC,EAAE,OAAO,GACpB,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAoBjD;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,YAAY,EAAE,YAAY,CAAC,gBAAgB,EAC3C,aAAa,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAgDzD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,iBAAiB,EAAE,MAAM,EAAE,EAC3B,cAAc,EAAE,MAAM,EAAE,YAa3B;AAED,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,EACvD,aAAa,EAAE,OAAO,oDAgBzB"}
|
package/build/utils.js
CHANGED
|
@@ -58,7 +58,7 @@ export async function initialiseInstance(config, capabilities, isMultiremote) {
|
|
|
58
58
|
log.debug('init multiremote session');
|
|
59
59
|
// @ts-expect-error ToDo(Christian): can be removed?
|
|
60
60
|
delete config.capabilities;
|
|
61
|
-
for (
|
|
61
|
+
for (const browserName of Object.keys(capabilities)) {
|
|
62
62
|
options[browserName] = deepmerge(config, capabilities[browserName]);
|
|
63
63
|
}
|
|
64
64
|
const browser = await multiremote(options, config);
|
|
@@ -66,7 +66,7 @@ export async function initialiseInstance(config, capabilities, isMultiremote) {
|
|
|
66
66
|
* only attach to global environment if `injectGlobals` is set to true
|
|
67
67
|
*/
|
|
68
68
|
const browserNames = config.injectGlobals ? Object.keys(capabilities) : [];
|
|
69
|
-
for (
|
|
69
|
+
for (const browserName of browserNames) {
|
|
70
70
|
// @ts-ignore allow random global browser names
|
|
71
71
|
global[browserName] = browser[browserName];
|
|
72
72
|
}
|
|
@@ -82,12 +82,9 @@ export function filterLogTypes(excludeDriverLogs, driverLogTypes) {
|
|
|
82
82
|
let logTypes = [...driverLogTypes];
|
|
83
83
|
if (Array.isArray(excludeDriverLogs)) {
|
|
84
84
|
log.debug('filtering logTypes', logTypes);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
else {
|
|
89
|
-
logTypes = logTypes.filter(x => !excludeDriverLogs.includes(x)); // exclude specific logTypes
|
|
90
|
-
}
|
|
85
|
+
logTypes = excludeDriverLogs.length === 1 && excludeDriverLogs[0] === '*'
|
|
86
|
+
? []
|
|
87
|
+
: logTypes.filter(x => !excludeDriverLogs.includes(x)); // exclude specific logTypes
|
|
91
88
|
log.debug('filtered logTypes', logTypes);
|
|
92
89
|
}
|
|
93
90
|
return logTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.14",
|
|
4
4
|
"description": "A WebdriverIO service that runs tests in arbitrary environments",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"types": "./build/index.d.ts",
|
|
27
27
|
"typeScriptVersion": "3.8.3",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wdio/config": "8.0.
|
|
30
|
-
"@wdio/globals": "8.0.
|
|
31
|
-
"@wdio/logger": "8.0.
|
|
32
|
-
"@wdio/types": "8.0.
|
|
33
|
-
"@wdio/utils": "8.0.
|
|
29
|
+
"@wdio/config": "8.0.14",
|
|
30
|
+
"@wdio/globals": "8.0.14",
|
|
31
|
+
"@wdio/logger": "8.0.14",
|
|
32
|
+
"@wdio/types": "8.0.14",
|
|
33
|
+
"@wdio/utils": "8.0.14",
|
|
34
34
|
"deepmerge-ts": "^4.2.2",
|
|
35
35
|
"expect-webdriverio": "^4.0.1",
|
|
36
36
|
"gaze": "^1.1.2",
|
|
37
|
-
"webdriver": "8.0.
|
|
38
|
-
"webdriverio": "8.0.
|
|
37
|
+
"webdriver": "8.0.14",
|
|
38
|
+
"webdriverio": "8.0.14"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ab58bc79c1df2e146d02a68ee444766ec371e6d2"
|
|
44
44
|
}
|