@wdio/reporter 9.0.0-alpha.115 → 9.0.0-alpha.321
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/stats/runner.d.ts +1 -1
- package/build/stats/runner.d.ts.map +1 -1
- package/build/utils.d.ts +1 -2
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +6 -2
- package/cjs/utils.js +6 -2
- package/package.json +4 -4
package/build/stats/runner.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import RunnableStats from './runnable.js';
|
|
|
6
6
|
*/
|
|
7
7
|
export default class RunnerStats extends RunnableStats {
|
|
8
8
|
cid: string;
|
|
9
|
-
capabilities: Capabilities.
|
|
9
|
+
capabilities: Capabilities.ResolvedTestrunnerCapabilities;
|
|
10
10
|
sanitizedCapabilities: string;
|
|
11
11
|
config: Options.Testrunner;
|
|
12
12
|
specs: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/stats/runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,aAAa,MAAM,eAAe,CAAA;AAGzC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IAClD,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/stats/runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,aAAa,MAAM,eAAe,CAAA;AAGzC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IAClD,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,YAAY,CAAC,8BAA8B,CAAA;IACzD,qBAAqB,EAAE,MAAM,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAC,UAAU,CAAA;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEH,MAAM,EAAE,OAAO,CAAC,WAAW;CAY3C"}
|
package/build/utils.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Capabilities } from '@wdio/types';
|
|
2
1
|
import { COLORS } from './constants.js';
|
|
3
2
|
/**
|
|
4
3
|
* replaces whitespaces with underscore and removes dots
|
|
@@ -10,7 +9,7 @@ export declare function sanitizeString(str?: string): string;
|
|
|
10
9
|
* formats capability object into sanitized string for e.g.filenames
|
|
11
10
|
* @param {object} caps Selenium capabilities
|
|
12
11
|
*/
|
|
13
|
-
export declare function sanitizeCaps(caps?: Capabilities
|
|
12
|
+
export declare function sanitizeCaps(caps?: WebdriverIO.Capabilities): string;
|
|
14
13
|
/**
|
|
15
14
|
* Takes a event emitted by a framework and extracts
|
|
16
15
|
* an array of errors representing test or hook failures.
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC;;;;GAIG;AACH,wBAAgB,cAAc,CAAE,GAAG,CAAC,EAAE,MAAM,UAU3C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAE,IAAI,CAAC,EAAE,WAAW,CAAC,YAAY,UA8B5D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAE,OAQlE;AAED;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAE5C;AAED,wBAAgB,KAAK,CAAE,IAAI,EAAE,MAAM,OAAO,MAAM,EAAE,OAAO,EAAE,MAAM,UAKhE;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,OAAO,MAAM,EAAE,GAAG,EAAE,MAAM,UAKjE"}
|
package/build/utils.js
CHANGED
|
@@ -27,16 +27,20 @@ export function sanitizeCaps(caps) {
|
|
|
27
27
|
/**
|
|
28
28
|
* mobile caps
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
31
|
+
result = caps['appium:deviceName'] || caps.deviceName
|
|
31
32
|
? [
|
|
32
33
|
sanitizeString(caps.platformName),
|
|
33
|
-
|
|
34
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
35
|
+
sanitizeString(caps['appium:deviceName'] || caps.deviceName),
|
|
34
36
|
sanitizeString(caps['appium:platformVersion']),
|
|
35
37
|
sanitizeString(caps['appium:app'])
|
|
36
38
|
]
|
|
37
39
|
: [
|
|
38
40
|
sanitizeString(caps.browserName),
|
|
41
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
39
42
|
sanitizeString(caps.version || caps.browserVersion),
|
|
43
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
40
44
|
sanitizeString(caps.platform || caps.platformName),
|
|
41
45
|
sanitizeString(caps['appium:app'])
|
|
42
46
|
];
|
package/cjs/utils.js
CHANGED
|
@@ -34,16 +34,20 @@ function sanitizeCaps(caps) {
|
|
|
34
34
|
/**
|
|
35
35
|
* mobile caps
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
38
|
+
result = caps['appium:deviceName'] || caps.deviceName
|
|
38
39
|
? [
|
|
39
40
|
sanitizeString(caps.platformName),
|
|
40
|
-
|
|
41
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
42
|
+
sanitizeString(caps['appium:deviceName'] || caps.deviceName),
|
|
41
43
|
sanitizeString(caps['appium:platformVersion']),
|
|
42
44
|
sanitizeString(caps['appium:app'])
|
|
43
45
|
]
|
|
44
46
|
: [
|
|
45
47
|
sanitizeString(caps.browserName),
|
|
48
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
46
49
|
sanitizeString(caps.version || caps.browserVersion),
|
|
50
|
+
// @ts-expect-error outdated JSONWP capabilities
|
|
47
51
|
sanitizeString(caps.platform || caps.platformName),
|
|
48
52
|
sanitizeString(caps['appium:app'])
|
|
49
53
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/reporter",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.321+63953a607",
|
|
4
4
|
"description": "A WebdriverIO utility to help reporting all events",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typeScriptVersion": "3.8.3",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@types/node": "^20.1.0",
|
|
45
|
-
"@wdio/logger": "9.0.0-alpha.
|
|
46
|
-
"@wdio/types": "9.0.0-alpha.
|
|
45
|
+
"@wdio/logger": "9.0.0-alpha.321+63953a607",
|
|
46
|
+
"@wdio/types": "9.0.0-alpha.321+63953a607",
|
|
47
47
|
"diff": "^5.0.0",
|
|
48
48
|
"object-inspect": "^1.12.0"
|
|
49
49
|
},
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@types/tmp": "^0.2.3",
|
|
55
55
|
"tmp": "^0.2.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "63953a6079023cb390a113fe5ce1c1b01b8e4bb6"
|
|
58
58
|
}
|