@wdio/browser-runner 9.0.7 → 9.0.9
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/index.d.ts.map +1 -1
- package/build/index.js +8 -2
- package/build/vite/server.d.ts +1 -1
- package/build/vite/server.d.ts.map +1 -1
- package/package.json +15 -14
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAS/G,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAmB,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAI5H,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;;IAU9C,OAAO,CAAC,OAAO;IACf,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU;gBAD7B,OAAO,EAAE,0BAA0B,EACjC,OAAO,EAAE,OAAO,CAAC,UAAU;IAwBzC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAgB;IAEhC;;OAEG;IACG,UAAU;IAsBV,GAAG,CAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC;IAiCrD;;;;OAIG;IACG,QAAQ;YAQA,wBAAwB;CAiEzC;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,oBAAqB,SAAQ,0BAA0B;SAAG;KACvE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AAC,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -968,6 +968,7 @@ var ViteServer = class extends EventEmitter {
|
|
|
968
968
|
this.#server = await createServer(this.#viteConfig);
|
|
969
969
|
await this.#server.listen();
|
|
970
970
|
log5.info(`Vite server started successfully on port ${vitePort}, root directory: ${this.#viteConfig.root}`);
|
|
971
|
+
return vitePort;
|
|
971
972
|
}
|
|
972
973
|
async close() {
|
|
973
974
|
await this.#server?.close();
|
|
@@ -1424,9 +1425,14 @@ var BrowserRunner = class extends LocalRunner {
|
|
|
1424
1425
|
const server = new ViteServer(this.#options, this.#config, this.#viteOptimizations);
|
|
1425
1426
|
this.#servers.add(server);
|
|
1426
1427
|
try {
|
|
1427
|
-
await server.start();
|
|
1428
|
+
const port = await server.start();
|
|
1428
1429
|
const host = this.#options.host || DEFAULT_HOST;
|
|
1429
|
-
runArgs.args.baseUrl = `${host}:${
|
|
1430
|
+
runArgs.args.baseUrl = `${host}:${port}`;
|
|
1431
|
+
if (runArgs.caps.browserName === "firefox") {
|
|
1432
|
+
runArgs.caps["wdio:geckodriverOptions"] = {
|
|
1433
|
+
allowOrigins: [`http://localhost:${port}`]
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1430
1436
|
} catch (err) {
|
|
1431
1437
|
throw new Error(`Vite server failed to start: ${err.stack}`);
|
|
1432
1438
|
}
|
package/build/vite/server.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class ViteServer extends EventEmitter {
|
|
|
10
10
|
get config(): Partial<InlineConfig>;
|
|
11
11
|
constructor(options: WebdriverIO.BrowserRunnerOptions, config: Options.Testrunner, optimizations: InlineConfig);
|
|
12
12
|
onBrowserEvent(handler: SocketEventHandler): void;
|
|
13
|
-
start(): Promise<
|
|
13
|
+
start(): Promise<number>;
|
|
14
14
|
close(): Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -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;AAO1C,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAY3E;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;;IAQxC,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,aAAa,EAAE,YAAY;IAmC/G,cAAc,CAAE,OAAO,EAAE,kBAAkB;IAIrC,KAAK;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO1C,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,MAAM,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAY3E;;GAEG;AACH,qBAAa,UAAW,SAAQ,YAAY;;IAQxC,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,aAAa,EAAE,YAAY;IAmC/G,cAAc,CAAE,OAAO,EAAE,kBAAkB;IAIrC,KAAK;IA6CL,KAAK;CAGd"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.9",
|
|
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",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=18"
|
|
9
|
+
"node": ">=18.20.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
66
66
|
"@types/istanbul-lib-source-maps": "^4.0.4",
|
|
67
67
|
"@vitest/spy": "^2.0.4",
|
|
68
|
-
"@wdio/globals": "9.0.
|
|
69
|
-
"@wdio/local-runner": "9.0.
|
|
70
|
-
"@wdio/logger": "9.0.
|
|
71
|
-
"@wdio/mocha-framework": "9.0.
|
|
72
|
-
"@wdio/protocols": "9.0.
|
|
73
|
-
"@wdio/runner": "9.0.
|
|
74
|
-
"@wdio/types": "9.0.
|
|
75
|
-
"@wdio/utils": "9.0.
|
|
68
|
+
"@wdio/globals": "9.0.9",
|
|
69
|
+
"@wdio/local-runner": "9.0.9",
|
|
70
|
+
"@wdio/logger": "9.0.8",
|
|
71
|
+
"@wdio/mocha-framework": "9.0.8",
|
|
72
|
+
"@wdio/protocols": "9.0.8",
|
|
73
|
+
"@wdio/runner": "9.0.9",
|
|
74
|
+
"@wdio/types": "9.0.8",
|
|
75
|
+
"@wdio/utils": "9.0.8",
|
|
76
76
|
"deepmerge-ts": "^7.0.3",
|
|
77
77
|
"expect": "^29.7.0",
|
|
78
78
|
"expect-webdriverio": "^5.0.1",
|
|
@@ -90,14 +90,15 @@
|
|
|
90
90
|
"vite": "~5.4.0",
|
|
91
91
|
"vite-plugin-istanbul": "^6.0.0",
|
|
92
92
|
"vite-plugin-top-level-await": "^1.4.1",
|
|
93
|
-
"webdriver": "9.0.
|
|
94
|
-
"webdriverio": "9.0.
|
|
93
|
+
"webdriver": "9.0.8",
|
|
94
|
+
"webdriverio": "9.0.9"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/istanbul-lib-coverage": "^2.0.6",
|
|
98
98
|
"@types/istanbul-lib-report": "^3.0.3",
|
|
99
99
|
"@types/istanbul-reports": "^3.0.4",
|
|
100
|
-
"esbuild": "^0.21.3"
|
|
100
|
+
"esbuild": "^0.21.3",
|
|
101
|
+
"geckodriver": "^4.4.4"
|
|
101
102
|
},
|
|
102
103
|
"optionalDependencies": {
|
|
103
104
|
"@nuxt/kit": "^3.12.4",
|
|
@@ -107,5 +108,5 @@
|
|
|
107
108
|
"publishConfig": {
|
|
108
109
|
"access": "public"
|
|
109
110
|
},
|
|
110
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "758ad309d3af97f05c322aae5466fa0a882a3599"
|
|
111
112
|
}
|