@wdio/browser-runner 8.0.14 → 8.1.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/driver.js +1 -1
- package/build/browser/frameworks/mocha.js +1 -1
- package/build/constants.d.ts +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.d.ts.map +1 -1
- package/build/utils.d.ts +1 -1
- package/build/utils.d.ts.map +1 -1
- package/build/vite/constants.d.ts +1 -1
- package/build/vite/constants.d.ts.map +1 -1
- package/build/vite/server.d.ts +2 -2
- package/build/vite/server.d.ts.map +1 -1
- package/build/vite/utils.d.ts +1 -1
- package/build/vite/utils.d.ts.map +1 -1
- package/package.json +14 -14
- package/a.js +0 -3
package/build/browser/driver.js
CHANGED
|
@@ -113,7 +113,7 @@ export default class ProxyDriver {
|
|
|
113
113
|
for (const method of CONSOLE_METHODS) {
|
|
114
114
|
const origCommand = console[method].bind(console);
|
|
115
115
|
console[method] = (...args) => {
|
|
116
|
-
socket.send(stringify(this.#consoleMessage({
|
|
116
|
+
socket.send(stringify.default(this.#consoleMessage({
|
|
117
117
|
name: 'consoleEvent',
|
|
118
118
|
type: method,
|
|
119
119
|
args,
|
|
@@ -80,7 +80,7 @@ export class MochaFramework {
|
|
|
80
80
|
return reject(new Error('"cid" query parameter is missing'));
|
|
81
81
|
}
|
|
82
82
|
this.#hookResolver.set(id.toString(), { resolve, reject });
|
|
83
|
-
this.#socket.send(stringify(this.#hookTrigger({ name, id, cid, args })));
|
|
83
|
+
this.#socket.send(stringify.default(this.#hookTrigger({ name, id, cid, args })));
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
#hookTrigger(value) {
|
package/build/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Browser } from 'webdriverio';
|
|
2
|
-
import type { Environment } from './types';
|
|
2
|
+
import type { Environment } from './types.js';
|
|
3
3
|
export declare const SESSIONS: Map<string, Environment>;
|
|
4
4
|
export declare const BROWSER_POOL: Map<string, Browser<'async'>>;
|
|
5
5
|
export declare const EVENTS: {
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,QAAQ,0BAAiC,CAAA;AACtD,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAa,CAAA;AAEpE,eAAO,MAAM,MAAM;;;;;;;;;;;CAWT,CAAA;AAEV,eAAO,MAAM,uBAAuB,wFAAsF,CAAA;AAE1H,oBAAY,aAAa;IACrB,cAAc,IAAI;IAClB,qBAAqB,IAAA;IACrB,sBAAsB,IAAA;IACtB,kBAAkB,IAAA;IAClB,iBAAiB,IAAA;CACpB"}
|
package/build/constants.js
CHANGED
|
@@ -20,4 +20,4 @@ export var MESSAGE_TYPES;
|
|
|
20
20
|
MESSAGE_TYPES[MESSAGE_TYPES["commandResponseMessage"] = 2] = "commandResponseMessage";
|
|
21
21
|
MESSAGE_TYPES[MESSAGE_TYPES["hookTriggerMessage"] = 3] = "hookTriggerMessage";
|
|
22
22
|
MESSAGE_TYPES[MESSAGE_TYPES["hookResultMessage"] = 4] = "hookResultMessage";
|
|
23
|
-
})(MESSAGE_TYPES || (MESSAGE_TYPES = {}));
|
|
23
|
+
})(MESSAGE_TYPES = MESSAGE_TYPES || (MESSAGE_TYPES = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { RunArgs } from '@wdio/local-runner';
|
|
1
|
+
import type { RunArgs, WorkerInstance } from '@wdio/local-runner';
|
|
2
2
|
import LocalRunner from '@wdio/local-runner';
|
|
3
3
|
import type { Options } from '@wdio/types';
|
|
4
|
-
import type { BrowserRunnerOptions as BrowserRunnerOptionsImport } from './types';
|
|
4
|
+
import type { BrowserRunnerOptions as BrowserRunnerOptionsImport } from './types.js';
|
|
5
5
|
export default class BrowserRunner extends LocalRunner {
|
|
6
6
|
#private;
|
|
7
7
|
private options;
|
|
@@ -11,7 +11,7 @@ export default class BrowserRunner extends LocalRunner {
|
|
|
11
11
|
* nothing to initialise when running locally
|
|
12
12
|
*/
|
|
13
13
|
initialise(): Promise<void>;
|
|
14
|
-
run(runArgs: RunArgs):
|
|
14
|
+
run(runArgs: RunArgs): WorkerInstance;
|
|
15
15
|
/**
|
|
16
16
|
* shutdown vite server
|
|
17
17
|
*
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAIpF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;;IAK9C,OAAO,CAAC,OAAO;IACf,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU;gBAD7B,OAAO,EAAE,0BAA0B,EACjC,OAAO,EAAE,OAAO,CAAC,UAAU;IAYzC;;OAEG;IACG,UAAU;IAYhB,GAAG,CAAE,OAAO,EAAE,OAAO,GAAG,cAAc;IAmDtC;;;;OAIG;IACG,QAAQ;CAIjB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,oBAAqB,SAAQ,0BAA0B;SAAG;KACvE;CACJ"}
|
package/build/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Capabilities } from '@wdio/types';
|
|
2
|
-
import type { BrowserRunnerOptions } from './types';
|
|
2
|
+
import type { BrowserRunnerOptions } from './types.js';
|
|
3
3
|
export declare function makeHeadless(options: BrowserRunnerOptions, caps: Capabilities.RemoteCapability): Capabilities.RemoteCapability;
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAItD,wBAAgB,YAAY,CAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CA0C/H"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InlineConfig } from 'vite';
|
|
2
|
-
import type { FrameworkPreset } from '../types';
|
|
2
|
+
import type { FrameworkPreset } from '../types.js';
|
|
3
3
|
export declare const PRESET_DEPENDENCIES: Record<FrameworkPreset, [string, string, any] | undefined>;
|
|
4
4
|
export declare const DEFAULT_VITE_CONFIG: Partial<InlineConfig>;
|
|
5
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/vite/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/vite/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAgB1F,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,YAAY,CAuBrD,CAAA"}
|
package/build/vite/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { EventEmitter } from 'node:events';
|
|
3
3
|
import { WebSocketServer } from 'ws';
|
|
4
4
|
import type { InlineConfig } from 'vite';
|
|
5
|
-
import type { HookTriggerEvent } from './types';
|
|
5
|
+
import type { HookTriggerEvent } from './types.js';
|
|
6
6
|
export declare class ViteServer extends EventEmitter {
|
|
7
7
|
#private;
|
|
8
8
|
get socketServer(): WebSocketServer | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,MAAM,CAAA;AASvD,OAAO,KAAK,EAAgB,gBAAgB,EAA6E,MAAM,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,MAAM,CAAA;AASvD,OAAO,KAAK,EAAgB,gBAAgB,EAA6E,MAAM,YAAY,CAAA;AAY3I,qBAAa,UAAW,SAAQ,YAAY;;IAQxC,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB;IAkBhD,KAAK;IAwCL,KAAK;IAmIX,OAAO,CAAC,cAAc;IAetB,WAAW,CAAE,MAAM,EAAE,gBAAgB;CAUxC"}
|
package/build/vite/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Environment, FrameworkPreset } from '../types';
|
|
1
|
+
import type { Environment, FrameworkPreset } from '../types.js';
|
|
2
2
|
export declare function getTemplate(options: WebdriverIO.BrowserRunnerOptions, env: Environment, spec: string): Promise<string>;
|
|
3
3
|
export declare function userfriendlyImport(preset: FrameworkPreset, pkg?: string): Promise<any>;
|
|
4
4
|
export declare function getErrorTemplate(filename: string, error: Error): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/D,wBAAsB,WAAW,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBA6D3G;AAED,wBAAsB,kBAAkB,CAAE,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,gBAa9E;AAED,wBAAgB,gBAAgB,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,UAU/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
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",
|
|
@@ -30,15 +30,14 @@
|
|
|
30
30
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
31
31
|
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
32
32
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
33
|
-
"@types/
|
|
34
|
-
"@wdio/globals": "8.0
|
|
35
|
-
"@wdio/local-runner": "8.0
|
|
36
|
-
"@wdio/logger": "8.0
|
|
37
|
-
"@wdio/mocha-framework": "8.0
|
|
38
|
-
"@wdio/protocols": "8.
|
|
39
|
-
"@wdio/
|
|
40
|
-
"@wdio/
|
|
41
|
-
"@wdio/utils": "8.0.14",
|
|
33
|
+
"@types/node": "^18.0.0",
|
|
34
|
+
"@wdio/globals": "8.1.0",
|
|
35
|
+
"@wdio/local-runner": "8.1.0",
|
|
36
|
+
"@wdio/logger": "8.1.0",
|
|
37
|
+
"@wdio/mocha-framework": "8.1.0",
|
|
38
|
+
"@wdio/protocols": "8.1.0",
|
|
39
|
+
"@wdio/types": "8.1.0",
|
|
40
|
+
"@wdio/utils": "8.1.0",
|
|
42
41
|
"deepmerge-ts": "^4.2.2",
|
|
43
42
|
"expect-webdriverio": "^4.0.1",
|
|
44
43
|
"fast-safe-stringify": "^2.1.1",
|
|
@@ -47,8 +46,8 @@
|
|
|
47
46
|
"serialize-error": "^11.0.0",
|
|
48
47
|
"vite": "^4.0.2",
|
|
49
48
|
"vite-plugin-top-level-await": "^1.2.1",
|
|
50
|
-
"webdriver": "8.0
|
|
51
|
-
"webdriverio": "8.0
|
|
49
|
+
"webdriver": "8.1.0",
|
|
50
|
+
"webdriverio": "8.1.0",
|
|
52
51
|
"ws": "^8.10.0"
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
@@ -58,7 +57,8 @@
|
|
|
58
57
|
"access": "public"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"@types/ws": "^8.5.3"
|
|
60
|
+
"@types/ws": "^8.5.3",
|
|
61
|
+
"@wdio/runner": "8.1.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f505134606f99129c816acb00f22e39032e60820"
|
|
64
64
|
}
|
package/a.js
DELETED