@wdio/runner 8.3.10 → 8.4.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/browser.d.ts +1 -1
- package/build/browser.d.ts.map +1 -1
- package/build/browser.js +4 -4
- package/package.json +8 -8
package/build/browser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Capabilities, Options } from '@wdio/types';
|
|
2
2
|
import type BaseReporter from './reporter.js';
|
|
3
3
|
import type { TestFramework } from './types.js';
|
|
4
|
-
type WDIOErrorEvent = Partial<Pick<ErrorEvent, 'filename' | 'message'>> & {
|
|
4
|
+
type WDIOErrorEvent = Partial<Pick<ErrorEvent, 'filename' | 'message' | 'error'>> & {
|
|
5
5
|
hasViteError?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare global {
|
package/build/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAK1F,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAK1F,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAO9G,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;QACxB,YAAY,CAAC,EAAE,OAAO,CAAA;KACzB;CACJ;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAKpE,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;gBAJT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,CAAC,UAAU,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EACpD,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IASnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IA6JT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAItH"}
|
package/build/browser.js
CHANGED
|
@@ -96,7 +96,7 @@ export default class BrowserFramework {
|
|
|
96
96
|
if (viteErrorElem && viteErrorElem.shadowRoot) {
|
|
97
97
|
const errorElems = Array.from(viteErrorElem.shadowRoot.querySelectorAll('pre'));
|
|
98
98
|
if (errorElems.length) {
|
|
99
|
-
viteError = errorElems.map((elem) =>
|
|
99
|
+
viteError = [{ message: errorElems.map((elem) => elem.innerText).join('\n') }];
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
const loadError = typeof window.__wdioErrors__ === 'undefined'
|
|
@@ -124,10 +124,10 @@ export default class BrowserFramework {
|
|
|
124
124
|
}
|
|
125
125
|
if (state.errors?.length) {
|
|
126
126
|
const errors = state.errors.map((ev) => state.hasViteError
|
|
127
|
-
? ev.message
|
|
128
|
-
: `${path.basename(ev.filename || spec)}: ${ev.message}`);
|
|
127
|
+
? `${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`
|
|
128
|
+
: `${path.basename(ev.filename || spec)}: ${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`);
|
|
129
129
|
const { name, message, stack } = new Error(state.hasViteError
|
|
130
|
-
? `Test failed due to the following error: ${errors.join('\n')}`
|
|
130
|
+
? `Test failed due to the following error: ${errors.join('\n\n')}`
|
|
131
131
|
: `Test failed due to following error(s):${sep}${errors.join(sep)}`);
|
|
132
132
|
process.send({
|
|
133
133
|
origin: 'worker',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
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",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"typeScriptVersion": "3.8.3",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@types/node": "^18.0.0",
|
|
30
|
-
"@wdio/config": "8.
|
|
31
|
-
"@wdio/globals": "8.
|
|
30
|
+
"@wdio/config": "8.4.0",
|
|
31
|
+
"@wdio/globals": "8.4.0",
|
|
32
32
|
"@wdio/logger": "8.1.0",
|
|
33
|
-
"@wdio/types": "8.
|
|
34
|
-
"@wdio/utils": "8.
|
|
33
|
+
"@wdio/types": "8.4.0",
|
|
34
|
+
"@wdio/utils": "8.4.0",
|
|
35
35
|
"deepmerge-ts": "^4.2.2",
|
|
36
36
|
"expect-webdriverio": "^4.0.1",
|
|
37
37
|
"gaze": "^1.1.2",
|
|
38
|
-
"webdriver": "8.
|
|
39
|
-
"webdriverio": "8.
|
|
38
|
+
"webdriver": "8.4.0",
|
|
39
|
+
"webdriverio": "8.4.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5d003ce35250c9d9dcecc9fd13a97257d6b349fe"
|
|
45
45
|
}
|