@wdio/cli 9.10.0 → 9.11.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.
@@ -58,10 +58,11 @@ export declare function formatConfigFilePaths(config: string): Promise<{
58
58
  }>;
59
59
  /**
60
60
  * Helper utility used in `run` and `install` command to check whether a config file currently exists
61
- * @param configPath the file path to the WDIO config file
61
+ * @param configPathNoExtension the file path to the WDIO config file without extension
62
+ * @param configPath the file path to the WDIO config file that is checked first if set
62
63
  * @returns {string} the path to the config file that exists, otherwise undefined
63
64
  */
64
- export declare function canAccessConfigPath(configPath: string): Promise<string | undefined>;
65
+ export declare function canAccessConfigPath(configPathNoExtension: string, configPath?: string): Promise<string | undefined>;
65
66
  /**
66
67
  * Helper utility used in `run` and `install` command to create config if none exist
67
68
  * @param {string} command to be executed by user
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAUxE,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAkBV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;GAKlC,CAAA;AAED,eAAO,MAAM,YAAY,QAAwB,OAAO,KAAG,OAAO,CAAC,aAAa,CAyF/E,CAAA;AAED,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAqBlF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,0BAAmB;;;;GAQ1F;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM;;;GAMzD;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,+BAQ3D;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,0BAAmB,mBA+BpH"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAUxE,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAkBV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;GAKlC,CAAA;AAED,eAAO,MAAM,YAAY,QAAwB,OAAO,KAAG,OAAO,CAAC,aAAa,CAyF/E,CAAA;AAED,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAqBlF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,0BAAmB;;;;GAQ1F;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM;;;GAMzD;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,qBAAqB,EAAC,MAAM,EAAE,UAAU,CAAC,EAAC,MAAM,+BAezF;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,0BAAmB,mBA+BpH"}
@@ -70,11 +70,11 @@ export declare const cmdArgs: {
70
70
  readonly type: "array";
71
71
  };
72
72
  readonly spec: {
73
- readonly desc: "run only a certain spec file - overrides specs piped from stdin";
73
+ readonly desc: "run only a certain spec file or wildcard - overrides specs piped from stdin";
74
74
  readonly type: "array";
75
75
  };
76
76
  readonly exclude: {
77
- readonly desc: "exclude certain spec file from the test run - overrides exclude piped from stdin";
77
+ readonly desc: "exclude certain spec file or wildcard from the test run - overrides exclude piped from stdin";
78
78
  readonly type: "array";
79
79
  };
80
80
  readonly repeat: {
@@ -184,11 +184,11 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
184
184
  readonly type: "array";
185
185
  };
186
186
  readonly spec: {
187
- readonly desc: "run only a certain spec file - overrides specs piped from stdin";
187
+ readonly desc: "run only a certain spec file or wildcard - overrides specs piped from stdin";
188
188
  readonly type: "array";
189
189
  };
190
190
  readonly exclude: {
191
- readonly desc: "exclude certain spec file from the test run - overrides exclude piped from stdin";
191
+ readonly desc: "exclude certain spec file or wildcard from the test run - overrides exclude piped from stdin";
192
192
  readonly type: "array";
193
193
  };
194
194
  readonly repeat: {
package/build/index.js CHANGED
@@ -605,7 +605,7 @@ var QUESTIONNAIRE = [{
605
605
  ),
606
606
  when: (
607
607
  /* istanbul ignore next */
608
- (answers) => answers.generateTestFiles && Boolean(answers.framework.match(/(mocha|jasmine)/))
608
+ (answers) => answers.generateTestFiles && /(mocha|jasmine)/.test(answers.framework)
609
609
  )
610
610
  }, {
611
611
  type: "input",
@@ -1373,24 +1373,24 @@ async function generateLocalRunnerTestFiles(answers) {
1373
1373
  dirPath,
1374
1374
  [(file, stats) => !stats.isDirectory() && !(file.endsWith(".ejs") || file.endsWith(".feature"))]
1375
1375
  )))).reduce((cur, acc) => [...acc, ...cur], []);
1376
- for (const file of files) {
1376
+ await Promise.all(files.map(async (file) => {
1377
1377
  const renderedTpl = await renderFile(file, { answers });
1378
1378
  const isJSX = answers.preset && TSX_BASED_FRAMEWORKS.includes(answers.preset);
1379
1379
  const fileEnding = (answers.isUsingTypeScript ? ".ts" : ".js") + (isJSX ? "x" : "");
1380
1380
  const destPath = (file.endsWith("page.js.ejs") ? path2.join(answers.destPageObjectRootPath, path2.basename(file)) : file.includes("step_definition") ? path2.join(answers.destStepRootPath, path2.basename(file)) : path2.join(answers.destSpecRootPath, path2.basename(file))).replace(/\.ejs$/, "").replace(/\.js$/, fileEnding);
1381
1381
  await fs2.mkdir(path2.dirname(destPath), { recursive: true });
1382
1382
  await fs2.writeFile(destPath, renderedTpl);
1383
- }
1383
+ }));
1384
1384
  }
1385
1385
  async function generateSerenityExamples(answers) {
1386
- const templateDirectories = {
1386
+ const templateDirectories = Object.entries({
1387
1387
  [answers.projectRootDir]: path2.join(TEMPLATE_ROOT_DIR, "serenity-js", "common", "config"),
1388
1388
  [answers.destSpecRootPath]: path2.join(TEMPLATE_ROOT_DIR, "serenity-js", answers.serenityAdapter),
1389
1389
  [answers.destSerenityLibRootPath]: path2.join(TEMPLATE_ROOT_DIR, "serenity-js", "common", "serenity")
1390
- };
1391
- for (const [destinationRootDir, templateRootDir] of Object.entries(templateDirectories)) {
1390
+ });
1391
+ await Promise.all(templateDirectories.map(async ([destinationRootDir, templateRootDir]) => {
1392
1392
  const pathsToTemplates = await readDir(templateRootDir);
1393
- for (const pathToTemplate of pathsToTemplates) {
1393
+ await Promise.all(pathsToTemplates.map(async (pathToTemplate) => {
1394
1394
  const extension = answers.isUsingTypeScript ? ".ts" : ".js";
1395
1395
  const destination = path2.join(destinationRootDir, path2.relative(templateRootDir, pathToTemplate)).replace(/\.ejs$/, "").replace(/\.ts$/, extension);
1396
1396
  const contents = await renderFile(
@@ -1399,8 +1399,8 @@ async function generateSerenityExamples(answers) {
1399
1399
  );
1400
1400
  await fs2.mkdir(path2.dirname(destination), { recursive: true });
1401
1401
  await fs2.writeFile(destination, contents);
1402
- }
1403
- }
1402
+ }));
1403
+ }));
1404
1404
  }
1405
1405
  async function getAnswers(yes) {
1406
1406
  if (yes) {
@@ -1412,7 +1412,7 @@ async function getAnswers(yes) {
1412
1412
  continue;
1413
1413
  }
1414
1414
  Object.assign(answers2, {
1415
- [question.name]: typeof question.default !== "undefined" ? typeof question.default === "function" ? await question.default(answers2) : await question.default : question.choices && question.choices.length ? typeof question.choices === "function" ? question.choices(answers2)[0].value ? question.choices(answers2)[0].value : question.choices(answers2)[0] : question.choices[0].value ? question.type === "checkbox" ? [question.choices[0].value] : question.choices[0].value : question.choices[0] : {}
1415
+ [question.name]: typeof question.default !== "undefined" ? typeof question.default === "function" ? await question.default(answers2) : question.default : question.choices && question.choices.length ? typeof question.choices === "function" ? question.choices(answers2)[0].value ? question.choices(answers2)[0].value : question.choices(answers2)[0] : question.choices[0].value ? question.type === "checkbox" ? [question.choices[0].value] : question.choices[0].value : question.choices[0] : {}
1416
1416
  });
1417
1417
  }
1418
1418
  answers2.isUsingTypeScript = await answers2.isUsingTypeScript;
@@ -1636,17 +1636,17 @@ async function setupTypeScript(parsedAnswers) {
1636
1636
  ...parsedAnswers.framework === "jasmine" ? ["expect-webdriverio/jasmine"] : ["expect-webdriverio"],
1637
1637
  ...parsedAnswers.serenityAdapter ? serenityTypes : [frameworkPackage.package],
1638
1638
  ...parsedAnswers.runner === "browser" ? ["@wdio/browser-runner"] : [],
1639
- ...servicePackages.map((service) => service.package).filter((service) => (
1639
+ ...servicePackages.filter((service) => (
1640
1640
  /**
1641
1641
  * given that we know that all "official" services have
1642
1642
  * typescript support we only include them
1643
1643
  */
1644
- service.startsWith("@wdio") || /**
1644
+ service.package.startsWith("@wdio") || /**
1645
1645
  * also include community maintained packages with known
1646
1646
  * support for TypeScript
1647
1647
  */
1648
- COMMUNITY_PACKAGES_WITH_TS_SUPPORT.includes(service)
1649
- ))
1648
+ COMMUNITY_PACKAGES_WITH_TS_SUPPORT.includes(service.package)
1649
+ )).map((service) => service.package)
1650
1650
  ];
1651
1651
  const preset = getPreset(parsedAnswers);
1652
1652
  const config = {
@@ -2371,15 +2371,19 @@ var Launcher = class {
2371
2371
  }
2372
2372
  const config = this.configParser.getConfig();
2373
2373
  while (this._getNumberOfRunningInstances() < config.maxInstances) {
2374
- const schedulableCaps = this._schedule.filter(() => {
2374
+ const schedulableCaps = this._schedule.filter((session) => {
2375
2375
  const filter = typeof config.bail !== "number" || config.bail < 1 || config.bail > this._runnerFailed;
2376
2376
  if (!filter) {
2377
2377
  this._schedule.forEach((t) => {
2378
2378
  t.specs = [];
2379
2379
  });
2380
+ return false;
2380
2381
  }
2381
- return filter;
2382
- }).filter(() => this._getNumberOfRunningInstances() < config.maxInstances).filter((a) => a.availableInstances > 0).filter((a) => a.specs.length > 0).sort((a, b) => a.runningInstances - b.runningInstances);
2382
+ if (this._getNumberOfRunningInstances() >= config.maxInstances) {
2383
+ return false;
2384
+ }
2385
+ return session.availableInstances > 0 && session.specs.length > 0;
2386
+ }).sort((a, b) => a.runningInstances - b.runningInstances);
2383
2387
  if (schedulableCaps.length === 0) {
2384
2388
  break;
2385
2389
  }
@@ -2575,7 +2579,7 @@ var Launcher = class {
2575
2579
  var launcher_default = Launcher;
2576
2580
 
2577
2581
  // src/run.ts
2578
- import path6 from "node:path";
2582
+ import path7 from "node:path";
2579
2583
  import yargs from "yargs";
2580
2584
  import { hideBin } from "yargs/helpers";
2581
2585
 
@@ -2726,14 +2730,21 @@ async function formatConfigFilePaths(config) {
2726
2730
  const fullPathNoExtension = fullPath.substring(0, fullPath.lastIndexOf(path3.extname(fullPath)));
2727
2731
  return { fullPath, fullPathNoExtension };
2728
2732
  }
2729
- async function canAccessConfigPath(configPath) {
2730
- return Promise.all(SUPPORTED_CONFIG_FILE_EXTENSION.map(async (supportedExtension) => {
2731
- const configPathWithExtension = `${configPath}.${supportedExtension}`;
2733
+ async function canAccessConfigPath(configPathNoExtension, configPath) {
2734
+ return new Promise((resolve3, reject) => {
2735
+ if (configPath) {
2736
+ const _configPath = configPath;
2737
+ fs3.access(_configPath).then(() => resolve3(_configPath), reject);
2738
+ } else {
2739
+ reject();
2740
+ }
2741
+ }).catch(() => Promise.all(SUPPORTED_CONFIG_FILE_EXTENSION.map(async (supportedExtension) => {
2742
+ const configPathWithExtension = `${configPathNoExtension}.${supportedExtension}`;
2732
2743
  return fs3.access(configPathWithExtension).then(() => configPathWithExtension, () => void 0);
2733
2744
  })).then(
2734
2745
  (configFilePaths) => configFilePaths.find(Boolean),
2735
2746
  () => void 0
2736
- );
2747
+ ));
2737
2748
  }
2738
2749
  async function missingConfigurationPrompt(command5, configPath, runConfigCmd = runConfigCommand) {
2739
2750
  const message = `Could not execute "${command5}" due to missing configuration, file "${path3.parse(configPath).name}[.js/.ts]" not found! Would you like to create one?`;
@@ -2875,15 +2886,17 @@ __export(run_exports, {
2875
2886
  launchWithStdin: () => launchWithStdin
2876
2887
  });
2877
2888
  import fs5 from "node:fs/promises";
2878
- import path5 from "node:path";
2889
+ import path6 from "node:path";
2879
2890
 
2880
2891
  // src/watcher.ts
2881
2892
  import url from "node:url";
2893
+ import path5 from "node:path";
2882
2894
  import chokidar from "chokidar";
2883
- import logger4 from "@wdio/logger";
2884
2895
  import pickBy2 from "lodash.pickby";
2885
2896
  import flattenDeep from "lodash.flattendeep";
2886
2897
  import union from "lodash.union";
2898
+ import logger4 from "@wdio/logger";
2899
+ import { FileSystemPathService } from "@wdio/config/node";
2887
2900
  var log4 = logger4("@wdio/cli:watch");
2888
2901
  var Watcher = class {
2889
2902
  constructor(_configFile, _args) {
@@ -2905,7 +2918,10 @@ var Watcher = class {
2905
2918
  chokidar.watch(flattenedSpecs, { ignoreInitial: true }).on("add", this.getFileListener()).on("change", this.getFileListener());
2906
2919
  const { filesToWatch } = this._launcher.configParser.getConfig();
2907
2920
  if (filesToWatch.length) {
2908
- chokidar.watch(filesToWatch, { ignoreInitial: true }).on("add", this.getFileListener(false)).on("change", this.getFileListener(false));
2921
+ const pathService = new FileSystemPathService();
2922
+ const rootDir = path5.dirname(path5.resolve(process.cwd(), this._configFile));
2923
+ const globbedFilesToWatch = filesToWatch.map((file) => pathService.ensureAbsolutePath(file, rootDir));
2924
+ chokidar.watch(globbedFilesToWatch, { ignoreInitial: true }).on("add", this.getFileListener(false)).on("change", this.getFileListener(false));
2909
2925
  }
2910
2926
  await this._launcher.run();
2911
2927
  const workers = this.getWorkers();
@@ -2980,8 +2996,8 @@ var Watcher = class {
2980
2996
  this.cleanUp();
2981
2997
  for (const [, worker] of Object.entries(workers)) {
2982
2998
  const { cid, capabilities, specs, sessionId } = worker;
2983
- const { hostname, path: path7, port, protocol, automationProtocol } = worker.config;
2984
- const args = Object.assign({ sessionId, baseUrl: worker.config.baseUrl, hostname, path: path7, port, protocol, automationProtocol }, params);
2999
+ const { hostname, path: path8, port, protocol, automationProtocol } = worker.config;
3000
+ const args = Object.assign({ sessionId, baseUrl: worker.config.baseUrl, hostname, path: path8, port, protocol, automationProtocol }, params);
2985
3001
  worker.postMessage("run", args);
2986
3002
  this._launcher.interface.emit("job:start", { cid, caps: capabilities, specs });
2987
3003
  }
@@ -3067,11 +3083,11 @@ var cmdArgs3 = {
3067
3083
  type: "array"
3068
3084
  },
3069
3085
  spec: {
3070
- desc: "run only a certain spec file - overrides specs piped from stdin",
3086
+ desc: "run only a certain spec file or wildcard - overrides specs piped from stdin",
3071
3087
  type: "array"
3072
3088
  },
3073
3089
  exclude: {
3074
- desc: "exclude certain spec file from the test run - overrides exclude piped from stdin",
3090
+ desc: "exclude certain spec file or wildcard from the test run - overrides exclude piped from stdin",
3075
3091
  type: "array"
3076
3092
  },
3077
3093
  "repeat": {
@@ -3138,7 +3154,7 @@ async function launch(wdioConfPath, params) {
3138
3154
  async function handler3(argv) {
3139
3155
  const { configPath = "wdio.conf.js", ...params } = argv;
3140
3156
  const wdioConf = await formatConfigFilePaths(configPath);
3141
- const confAccess = await canAccessConfigPath(wdioConf.fullPathNoExtension);
3157
+ const confAccess = await canAccessConfigPath(wdioConf.fullPathNoExtension, wdioConf.fullPath);
3142
3158
  if (!confAccess) {
3143
3159
  try {
3144
3160
  await missingConfigurationPrompt("run", wdioConf.fullPathNoExtension);
@@ -3150,9 +3166,9 @@ async function handler3(argv) {
3150
3166
  process.exit(1);
3151
3167
  }
3152
3168
  }
3153
- const tsConfigPathFromEnvVar = process.env.TSCONFIG_PATH && path5.resolve(process.cwd(), process.env.TSCONFIG_PATH) || process.env.TSX_TSCONFIG_PATH && path5.resolve(process.cwd(), process.env.TSX_TSCONFIG_PATH);
3154
- const tsConfigPathFromParams = params.tsConfigPath && path5.resolve(process.cwd(), params.tsConfigPath);
3155
- const tsConfigPathRelativeToWdioConfig = path5.join(path5.dirname(confAccess), "tsconfig.json");
3169
+ const tsConfigPathFromEnvVar = process.env.TSCONFIG_PATH && path6.resolve(process.cwd(), process.env.TSCONFIG_PATH) || process.env.TSX_TSCONFIG_PATH && path6.resolve(process.cwd(), process.env.TSX_TSCONFIG_PATH);
3170
+ const tsConfigPathFromParams = params.tsConfigPath && path6.resolve(process.cwd(), params.tsConfigPath);
3171
+ const tsConfigPathRelativeToWdioConfig = path6.join(path6.dirname(confAccess), "tsconfig.json");
3156
3172
  const localTSConfigPath = tsConfigPathFromEnvVar || tsConfigPathFromParams || tsConfigPathRelativeToWdioConfig;
3157
3173
  const hasLocalTSConfig = await fs5.access(localTSConfigPath).then(() => true, () => false);
3158
3174
  if (hasLocalTSConfig) {
@@ -3241,7 +3257,7 @@ Commands:` }).version(pkg.version).epilogue(CLI_EPILOGUE);
3241
3257
  }
3242
3258
  const args = {
3243
3259
  ...params,
3244
- configPath: path6.resolve(process.cwd(), params._[0] && params._[0].toString() || DEFAULT_CONFIG_FILENAME)
3260
+ configPath: path7.resolve(process.cwd(), params._[0] && params._[0].toString() || DEFAULT_CONFIG_FILENAME)
3245
3261
  };
3246
3262
  try {
3247
3263
  const cp = await handler3(args);
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,EAAyB,QAAQ,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,WAAW,MAAM,gBAAgB,CAAA;AAG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AC,mBAAmB,CAAM;IAqC9C,OAAO;CAGV"}
1
+ {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../src/watcher.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAgB,OAAO,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAKvE,MAAM,CAAC,OAAO,OAAO,OAAO;IAKpB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,KAAK;IALjB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,MAAM,CAAa;gBAGf,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAMpD,KAAK;IAsDX;;;;OAIG;IACH,eAAe,CAAE,UAAU,UAAO,UAChB,MAAM;IAgCxB;;;;;OAKG;IACH,UAAU,CAAE,SAAS,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU;IAqB7H;;;OAGG;IACH,GAAG,CAAE,MAAM,GAAE,OAAO,CAAC,mBAAmB,CAAM;IAqC9C,OAAO;CAGV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "9.10.0",
3
+ "version": "9.11.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",
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@types/node": "^20.1.1",
43
43
  "@vitest/snapshot": "^2.1.1",
44
- "@wdio/config": "9.9.0",
45
- "@wdio/globals": "9.10.0",
44
+ "@wdio/config": "9.11.0",
45
+ "@wdio/globals": "9.11.0",
46
46
  "@wdio/logger": "9.4.4",
47
47
  "@wdio/protocols": "9.7.0",
48
- "@wdio/types": "9.9.0",
49
- "@wdio/utils": "9.9.0",
48
+ "@wdio/types": "9.10.1",
49
+ "@wdio/utils": "9.11.0",
50
50
  "async-exit-hook": "^2.0.1",
51
51
  "chalk": "^5.2.0",
52
52
  "chokidar": "^4.0.0",
@@ -61,7 +61,7 @@
61
61
  "read-pkg-up": "^10.0.0",
62
62
  "recursive-readdir": "^2.2.3",
63
63
  "tsx": "^4.7.2",
64
- "webdriverio": "9.10.0",
64
+ "webdriverio": "9.11.0",
65
65
  "yargs": "^17.7.2"
66
66
  },
67
67
  "devDependencies": {
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "11ca2d175dd33b49639197c2a4ac4e26c9d852d1"
80
+ "gitHead": "79a39e09a5eeabebac2f068b8d29f0ae4921fa20"
81
81
  }