@wdio/browser-runner 8.13.13 → 8.14.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/mock.d.ts
CHANGED
|
@@ -20,6 +20,15 @@ export declare const fileURLToPath: () => string;
|
|
|
20
20
|
export declare const dirname: () => string;
|
|
21
21
|
export declare const resolve: () => string;
|
|
22
22
|
export declare const sep = "/";
|
|
23
|
+
export declare const start: () => void;
|
|
24
|
+
export declare const install: () => void;
|
|
25
|
+
export declare const computeExecutablePath: () => void;
|
|
26
|
+
export declare const Browser: () => void;
|
|
27
|
+
export declare const getInstalledBrowsers: () => void;
|
|
28
|
+
export declare const canDownload: () => void;
|
|
29
|
+
export declare const resolveBuildId: () => void;
|
|
30
|
+
export declare const ChromeReleaseChannel: () => void;
|
|
31
|
+
export declare const detectBrowserPlatform: () => void;
|
|
23
32
|
export declare const type = "browser";
|
|
24
33
|
export declare const sync: () => void;
|
|
25
34
|
declare const _default: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/browser/mock.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAIzB,CAAA;AAED,eAAO,MAAM,iBAAiB,SAAK,CAAA;AACnC,eAAO,MAAM,eAAe,IAAK,CAAA;AACjC,qBAAa,YAAY;CAAG;AAC5B,eAAO,MAAM,GAAG;;;;;CAAa,CAAA;AAC7B,eAAO,MAAM,aAAa,cAAW,CAAA;AACrC,eAAO,MAAM,aAAa,cAAW,CAAA;AACrC,eAAO,MAAM,OAAO,cAAW,CAAA;AAC/B,eAAO,MAAM,OAAO,cAAW,CAAA;AAC/B,eAAO,MAAM,GAAG,MAAM,CAAA;AACtB,eAAO,MAAM,IAAI,YAAY,CAAA;AAC7B,eAAO,MAAM,IAAI,YAAW,CAAA;;AAC5B,wBAAuB"}
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/browser/mock.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAIzB,CAAA;AAED,eAAO,MAAM,iBAAiB,SAAK,CAAA;AACnC,eAAO,MAAM,eAAe,IAAK,CAAA;AACjC,qBAAa,YAAY;CAAG;AAC5B,eAAO,MAAM,GAAG;;;;;CAAa,CAAA;AAC7B,eAAO,MAAM,aAAa,cAAW,CAAA;AACrC,eAAO,MAAM,aAAa,cAAW,CAAA;AACrC,eAAO,MAAM,OAAO,cAAW,CAAA;AAC/B,eAAO,MAAM,OAAO,cAAW,CAAA;AAC/B,eAAO,MAAM,GAAG,MAAM,CAAA;AACtB,eAAO,MAAM,KAAK,YAAW,CAAA;AAC7B,eAAO,MAAM,OAAO,YAAW,CAAA;AAC/B,eAAO,MAAM,qBAAqB,YAAW,CAAA;AAC7C,eAAO,MAAM,OAAO,YAAW,CAAA;AAC/B,eAAO,MAAM,oBAAoB,YAAW,CAAA;AAC5C,eAAO,MAAM,WAAW,YAAW,CAAA;AACnC,eAAO,MAAM,cAAc,YAAW,CAAA;AACtC,eAAO,MAAM,oBAAoB,YAAW,CAAA;AAC5C,eAAO,MAAM,qBAAqB,YAAW,CAAA;AAC7C,eAAO,MAAM,IAAI,YAAY,CAAA;AAC7B,eAAO,MAAM,IAAI,YAAW,CAAA;;AAC5B,wBAAuB"}
|
package/build/browser/mock.js
CHANGED
|
@@ -16,6 +16,15 @@ export const fileURLToPath = () => '';
|
|
|
16
16
|
export const dirname = () => '';
|
|
17
17
|
export const resolve = () => '';
|
|
18
18
|
export const sep = '/';
|
|
19
|
+
export const start = () => { };
|
|
20
|
+
export const install = () => { };
|
|
21
|
+
export const computeExecutablePath = () => { };
|
|
22
|
+
export const Browser = () => { };
|
|
23
|
+
export const getInstalledBrowsers = () => { };
|
|
24
|
+
export const canDownload = () => { };
|
|
25
|
+
export const resolveBuildId = () => { };
|
|
26
|
+
export const ChromeReleaseChannel = () => { };
|
|
27
|
+
export const detectBrowserPlatform = () => { };
|
|
19
28
|
export const type = 'browser';
|
|
20
29
|
export const sync = () => { };
|
|
21
30
|
export default () => { };
|
|
@@ -22,12 +22,13 @@ const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
|
|
22
22
|
* functionality
|
|
23
23
|
*/
|
|
24
24
|
const MODULES_TO_MOCK = [
|
|
25
|
-
'import-meta-resolve', 'puppeteer-core', 'archiver', 'glob', 'devtools', 'ws', 'decamelize'
|
|
25
|
+
'import-meta-resolve', 'puppeteer-core', 'archiver', 'glob', 'devtools', 'ws', 'decamelize',
|
|
26
|
+
'geckodriver', 'safaridriver', 'edgedriver', '@puppeteer/browsers'
|
|
26
27
|
];
|
|
27
28
|
const POLYFILLS = [
|
|
28
29
|
...builtinModules,
|
|
29
30
|
...builtinModules.map((m) => `node:${m}`)
|
|
30
|
-
]
|
|
31
|
+
];
|
|
31
32
|
export function testrunner(options) {
|
|
32
33
|
const automationProtocolPath = `/@fs${url.pathToFileURL(path.resolve(__dirname, '..', '..', 'browser', 'driver.js')).pathname}`;
|
|
33
34
|
const mockModulePath = path.resolve(__dirname, '..', '..', 'browser', 'mock.js');
|
|
@@ -41,7 +42,7 @@ export function testrunner(options) {
|
|
|
41
42
|
return resolvedVirtualModuleId;
|
|
42
43
|
}
|
|
43
44
|
if (POLYFILLS.includes(id)) {
|
|
44
|
-
return polyfillPath(normalizeId(id));
|
|
45
|
+
return polyfillPath(normalizeId(id.replace('/promises', '')));
|
|
45
46
|
}
|
|
46
47
|
if (id === '@wdio/browser-runner') {
|
|
47
48
|
return spyModulePath;
|
package/build/vite/utils.js
CHANGED
|
@@ -106,7 +106,7 @@ export async function getTemplate(options, env, spec, p = process) {
|
|
|
106
106
|
env: ${JSON.stringify(p.env)},
|
|
107
107
|
stdout: {},
|
|
108
108
|
stderr: {},
|
|
109
|
-
cwd: () =>
|
|
109
|
+
cwd: () => ${JSON.stringify(p.cwd())},
|
|
110
110
|
}
|
|
111
111
|
</script>
|
|
112
112
|
<script type="module" src="@wdio/browser-runner/setup"></script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.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",
|
|
@@ -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.33.0",
|
|
38
|
-
"@wdio/globals": "8.
|
|
39
|
-
"@wdio/local-runner": "8.
|
|
38
|
+
"@wdio/globals": "8.14.0",
|
|
39
|
+
"@wdio/local-runner": "8.14.0",
|
|
40
40
|
"@wdio/logger": "8.11.0",
|
|
41
|
-
"@wdio/mocha-framework": "8.
|
|
41
|
+
"@wdio/mocha-framework": "8.14.0",
|
|
42
42
|
"@wdio/protocols": "8.11.0",
|
|
43
|
-
"@wdio/types": "8.
|
|
44
|
-
"@wdio/utils": "8.
|
|
43
|
+
"@wdio/types": "8.14.0",
|
|
44
|
+
"@wdio/utils": "8.14.0",
|
|
45
45
|
"ast-types": "^0.14.2",
|
|
46
46
|
"deepmerge-ts": "^5.0.0",
|
|
47
47
|
"expect-webdriverio": "^4.2.5",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"vite": "~4.4.6",
|
|
60
60
|
"vite-plugin-istanbul": "^5.0.0",
|
|
61
61
|
"vite-plugin-top-level-await": "^1.3.0",
|
|
62
|
-
"webdriver": "8.
|
|
63
|
-
"webdriverio": "8.
|
|
62
|
+
"webdriver": "8.14.0",
|
|
63
|
+
"webdriverio": "8.14.0",
|
|
64
64
|
"ws": "^8.13.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/ws": "^8.5.4",
|
|
74
|
-
"@wdio/runner": "8.
|
|
74
|
+
"@wdio/runner": "8.14.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "cb2092b007e6d2ac23a49aa30dae67d70e45906d"
|
|
77
77
|
}
|