@wdio/cli 9.20.1 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAIA,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"}
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";
@@ -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,
@@ -1271,7 +1271,6 @@ __export(run_exports, {
1271
1271
  });
1272
1272
  import fs from "node:fs/promises";
1273
1273
  import path2 from "node:path";
1274
- import { pathToFileURL } from "node:url";
1275
1274
 
1276
1275
  // src/watcher.ts
1277
1276
  import url from "node:url";
@@ -1574,7 +1573,7 @@ async function handler(argv) {
1574
1573
  }
1575
1574
  async function tsConfigPathFromConfigFile(wdioConfPath, params) {
1576
1575
  try {
1577
- const configParser = new ConfigParser3(cacheBustFilePath(wdioConfPath), params);
1576
+ const configParser = new ConfigParser3(wdioConfPath, params);
1578
1577
  await configParser.initialize();
1579
1578
  const { tsConfigPath } = configParser.getConfig();
1580
1579
  if (tsConfigPath) {
@@ -1586,12 +1585,6 @@ async function tsConfigPathFromConfigFile(wdioConfPath, params) {
1586
1585
  }
1587
1586
  return;
1588
1587
  }
1589
- function cacheBustFilePath(filePath) {
1590
- const absolutePath = path2.resolve(filePath);
1591
- const fileUrl = pathToFileURL(absolutePath);
1592
- fileUrl.search = `v=${Date.now()}&log_errors=false`;
1593
- return fileUrl.href;
1594
- }
1595
1588
 
1596
1589
  // src/commands/repl.ts
1597
1590
  var IGNORED_ARGS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "9.20.1",
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.20.1",
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.20.1",
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.18.2",
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.20.1",
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": "ac132d5e6c95ad0b9f4e92cb0090c9a60296da4c"
73
+ "gitHead": "cfbd795427524c3add91b2c980e6866477875332"
74
74
  }