@wdio/browser-runner 8.19.0 → 8.20.3
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/driver.js +1 -1
- package/build/browser/frameworks/mocha.js +1 -1
- package/build/browser/spy.d.ts +1 -1
- package/build/browser/spy.d.ts.map +1 -1
- package/build/vite/mock.d.ts +1 -1
- package/build/vite/mock.d.ts.map +1 -1
- package/build/vite/plugins/testrunner.js +1 -1
- package/build/vite/server.d.ts +1 -1
- package/build/vite/server.d.ts.map +1 -1
- package/build/vite/server.js +4 -1
- package/package.json +11 -11
package/build/browser/driver.js
CHANGED
|
@@ -125,7 +125,7 @@ export default class ProxyDriver {
|
|
|
125
125
|
for (const method of CONSOLE_METHODS) {
|
|
126
126
|
const origCommand = console[method].bind(console);
|
|
127
127
|
console[method] = (...args) => {
|
|
128
|
-
socket.send(stringify(this.#consoleMessage({
|
|
128
|
+
socket.send(stringify.default(this.#consoleMessage({
|
|
129
129
|
name: 'consoleEvent',
|
|
130
130
|
type: method,
|
|
131
131
|
args,
|
|
@@ -176,7 +176,7 @@ export class MochaFramework extends HTMLElement {
|
|
|
176
176
|
return reject(new Error('"cid" query parameter is missing'));
|
|
177
177
|
}
|
|
178
178
|
this.#hookResolver.set(id.toString(), { resolve, reject });
|
|
179
|
-
this.#socket?.send(stringify(this.#hookTrigger({ name, id, cid, args })));
|
|
179
|
+
this.#socket?.send(stringify.default(this.#hookTrigger({ name, id, cid, args })));
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
#hookTrigger(value) {
|
package/build/browser/spy.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spy.d.ts","sourceRoot":"","sources":["../../src/browser/spy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"spy.d.ts","sourceRoot":"","sources":["../../src/browser/spy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;GAEG;AACH,cAAc,aAAa,CAAA;AAS3B,wBAAsB,IAAI,CAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,iBA2BxE;AAGD,wBAAgB,MAAM,CAAC,UAAU,EAAE,MAAM,QAExC;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,kBAA0C"}
|
package/build/vite/mock.d.ts
CHANGED
package/build/vite/mock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/vite/mock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/vite/mock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAIlD,qBAAa,WAAW;;IAOpB,WAAW,EAAE,MAAM,EAAE,CAAK;gBAEb,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU;IAMlF,IAAI,KAAK,kCAER;IAED,MAAM,CAAE,UAAU,EAAE,MAAM;IAIpB,SAAS,CAAE,EAAE,EAAE,MAAM;IAwB3B;;OAEG;IACH,UAAU;CAIb"}
|
|
@@ -24,7 +24,7 @@ const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
|
|
24
24
|
const MODULES_TO_MOCK = [
|
|
25
25
|
'import-meta-resolve', 'puppeteer-core', 'archiver', 'glob', 'devtools', 'ws', 'decamelize', 'got',
|
|
26
26
|
'geckodriver', 'safaridriver', 'edgedriver', '@puppeteer/browsers', 'locate-app', 'wait-port',
|
|
27
|
-
'lodash.isequal'
|
|
27
|
+
'lodash.isequal', '@wdio/repl'
|
|
28
28
|
];
|
|
29
29
|
const POLYFILLS = [
|
|
30
30
|
...builtinModules,
|
package/build/vite/server.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAGlE,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,KAAK,EACM,gBAAgB,EAEjC,MAAM,YAAY,CAAA;AAgBnB,qBAAa,UAAW,SAAQ,YAAY;;IAUxC,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,aAAa,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAGlE,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,aAAa,CAAA;AAQpD,OAAO,KAAK,EACM,gBAAgB,EAEjC,MAAM,YAAY,CAAA;AAgBnB,qBAAa,UAAW,SAAQ,YAAY;;IAUxC,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,aAAa,EAAE,YAAY;IA8BzG,KAAK;IAuDL,KAAK;IA2IX,OAAO,CAAC,cAAc;IAetB,WAAW,CAAE,MAAM,EAAE,gBAAgB;CAUxC"}
|
package/build/vite/server.js
CHANGED
|
@@ -51,7 +51,10 @@ export class ViteServer extends EventEmitter {
|
|
|
51
51
|
});
|
|
52
52
|
if (options.coverage && options.coverage.enabled) {
|
|
53
53
|
log.info('Capturing test coverage enabled');
|
|
54
|
-
|
|
54
|
+
// @ts-expect-error istanbul plugin seems to incorrectly export
|
|
55
|
+
// its type for our setup
|
|
56
|
+
const plugin = istanbulPlugin;
|
|
57
|
+
this.#viteConfig.plugins?.push(plugin({
|
|
55
58
|
cwd: config.rootDir,
|
|
56
59
|
include: DEFAULT_INCLUDE,
|
|
57
60
|
extension: DEFAULT_FILE_EXTENSIONS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.20.3",
|
|
4
4
|
"description": "A WebdriverIO runner to run unit tests tests in the browser.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@types/istanbul-lib-source-maps": "^4.0.1",
|
|
36
36
|
"@types/node": "^20.1.0",
|
|
37
37
|
"@vitest/spy": "^0.34.1",
|
|
38
|
-
"@wdio/globals": "8.
|
|
39
|
-
"@wdio/local-runner": "8.
|
|
38
|
+
"@wdio/globals": "8.20.3",
|
|
39
|
+
"@wdio/local-runner": "8.20.3",
|
|
40
40
|
"@wdio/logger": "8.16.17",
|
|
41
|
-
"@wdio/mocha-framework": "8.
|
|
42
|
-
"@wdio/protocols": "8.
|
|
43
|
-
"@wdio/types": "8.
|
|
44
|
-
"@wdio/utils": "8.
|
|
41
|
+
"@wdio/mocha-framework": "8.20.3",
|
|
42
|
+
"@wdio/protocols": "8.20.3",
|
|
43
|
+
"@wdio/types": "8.20.0",
|
|
44
|
+
"@wdio/utils": "8.20.3",
|
|
45
45
|
"ast-types": "^0.14.2",
|
|
46
46
|
"deepmerge-ts": "^5.0.0",
|
|
47
47
|
"expect-webdriverio": "^4.2.5",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"vite": "~4.4.6",
|
|
61
61
|
"vite-plugin-istanbul": "^5.0.0",
|
|
62
62
|
"vite-plugin-top-level-await": "^1.3.0",
|
|
63
|
-
"webdriver": "8.
|
|
64
|
-
"webdriverio": "8.
|
|
63
|
+
"webdriver": "8.20.3",
|
|
64
|
+
"webdriverio": "8.20.3",
|
|
65
65
|
"ws": "^8.13.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/ws": "^8.5.4",
|
|
75
|
-
"@wdio/runner": "8.
|
|
75
|
+
"@wdio/runner": "8.20.3"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "963b578edcfd5636994662122ebac35b0bd641f1"
|
|
78
78
|
}
|