@wdio/cli 9.20.0 → 9.21.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/commands/run.d.ts.map +1 -1
- package/build/index.js +15 -8
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAOtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkDN,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA5DX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkDN,MAAM;;;;;GAoB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAezF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,iBAiEtD"}
|
package/build/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import "dotenv/config";
|
|
|
11
11
|
import exitHook from "async-exit-hook";
|
|
12
12
|
import { resolve } from "import-meta-resolve";
|
|
13
13
|
import logger3 from "@wdio/logger";
|
|
14
|
-
import { validateConfig } from "@wdio/config";
|
|
14
|
+
import { validateConfig, DEFAULT_MAX_INSTANCES_PER_CAPABILITY_VALUE } from "@wdio/config";
|
|
15
15
|
import { ConfigParser as ConfigParser2 } from "@wdio/config/node";
|
|
16
16
|
import { initializePlugin, initializeLauncherService, sleep, enableFileLogging } from "@wdio/utils";
|
|
17
17
|
import { setupDriver, setupBrowser } from "@wdio/utils/node";
|
|
@@ -424,7 +424,7 @@ async function getCapabilities(arg) {
|
|
|
424
424
|
let requiredCaps = config3.getCapabilities();
|
|
425
425
|
requiredCaps = // multi capabilities
|
|
426
426
|
requiredCaps[parseInt(arg.capabilities, 10)] || // multiremote
|
|
427
|
-
requiredCaps[arg.capabilities];
|
|
427
|
+
requiredCaps[arg.capabilities]?.capabilities;
|
|
428
428
|
const requiredW3CCaps = pickBy(requiredCaps, (_, key) => CAPABILITY_KEYS.includes(key) || key.includes(":"));
|
|
429
429
|
if (!Object.keys(requiredW3CCaps).length) {
|
|
430
430
|
throw Error(`No capability found in given config file with the provided capability indexed/named property: ${arg.capabilities}. Please check the capability in your wdio config file.`);
|
|
@@ -963,7 +963,7 @@ var Launcher = class {
|
|
|
963
963
|
});
|
|
964
964
|
} else {
|
|
965
965
|
for (const capabilities of caps) {
|
|
966
|
-
const availableInstances = this.isParallelMultiremote ? config3.maxInstances || 1 : config3.runner === "browser" ? 1 : capabilities["wdio:maxInstances"] || config3.maxInstancesPerCapability;
|
|
966
|
+
const availableInstances = this.isParallelMultiremote ? config3.maxInstances || 1 : config3.runner === "browser" ? 1 : capabilities["wdio:maxInstances"] || config3.maxInstancesPerCapability || DEFAULT_MAX_INSTANCES_PER_CAPABILITY_VALUE;
|
|
967
967
|
this._schedule.push({
|
|
968
968
|
cid: cid++,
|
|
969
969
|
caps: capabilities,
|
|
@@ -1394,6 +1394,8 @@ var Watcher = class {
|
|
|
1394
1394
|
// src/commands/run.ts
|
|
1395
1395
|
import { config } from "create-wdio/config/cli";
|
|
1396
1396
|
import { ConfigParser as ConfigParser3 } from "@wdio/config/node";
|
|
1397
|
+
import logger5 from "@wdio/logger";
|
|
1398
|
+
var log5 = logger5("@wdio/cli:run");
|
|
1397
1399
|
var command = "run <configPath>";
|
|
1398
1400
|
var desc = "Run your WDIO configuration file to initialize your tests. (default)";
|
|
1399
1401
|
var cmdArgs = {
|
|
@@ -1570,11 +1572,16 @@ async function handler(argv) {
|
|
|
1570
1572
|
launchWithStdin(confAccess, params);
|
|
1571
1573
|
}
|
|
1572
1574
|
async function tsConfigPathFromConfigFile(wdioConfPath, params) {
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1575
|
+
try {
|
|
1576
|
+
const configParser = new ConfigParser3(wdioConfPath, params);
|
|
1577
|
+
await configParser.initialize();
|
|
1578
|
+
const { tsConfigPath } = configParser.getConfig();
|
|
1579
|
+
if (tsConfigPath) {
|
|
1580
|
+
return tsConfigPath;
|
|
1581
|
+
}
|
|
1582
|
+
} catch {
|
|
1583
|
+
log5.debug(`Unable to parse config file. If tsConfigPath is set in ${wdioConfPath}, it will be ignored.`);
|
|
1584
|
+
return;
|
|
1578
1585
|
}
|
|
1579
1586
|
return;
|
|
1580
1587
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.21.0",
|
|
4
4
|
"description": "WebdriverIO testrunner command line interface",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"typeScriptVersion": "3.8.3",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@vitest/snapshot": "^2.1.1",
|
|
43
|
-
"@wdio/config": "9.
|
|
43
|
+
"@wdio/config": "9.21.0",
|
|
44
44
|
"@wdio/globals": "9.17.0",
|
|
45
45
|
"@wdio/logger": "9.18.0",
|
|
46
46
|
"@wdio/protocols": "9.16.2",
|
|
47
47
|
"@wdio/types": "9.20.0",
|
|
48
|
-
"@wdio/utils": "9.
|
|
48
|
+
"@wdio/utils": "9.21.0",
|
|
49
49
|
"async-exit-hook": "^2.0.1",
|
|
50
50
|
"chalk": "^5.4.1",
|
|
51
51
|
"chokidar": "^4.0.0",
|
|
52
|
-
"create-wdio": "9.
|
|
52
|
+
"create-wdio": "9.21.0",
|
|
53
53
|
"dotenv": "^17.2.0",
|
|
54
54
|
"import-meta-resolve": "^4.0.0",
|
|
55
55
|
"lodash.flattendeep": "^4.4.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"lodash.union": "^4.6.0",
|
|
58
58
|
"read-pkg-up": "^10.0.0",
|
|
59
59
|
"tsx": "^4.7.2",
|
|
60
|
-
"webdriverio": "9.
|
|
60
|
+
"webdriverio": "9.21.0",
|
|
61
61
|
"yargs": "^17.7.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "cfbd795427524c3add91b2c980e6866477875332"
|
|
74
74
|
}
|