@wdio/cli 8.29.3 → 8.29.7

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.
@@ -77,25 +77,25 @@ export default class WDIOCLInterface extends EventEmitter {
77
77
  : '';
78
78
  this.log(chalk.bold(`\nExecution of ${chalk.blue(this.totalWorkerCnt)} workers${shardNote} started at`), this._start.toISOString());
79
79
  if (this._inDebugMode) {
80
- this.log(chalk.bgYellow.black('DEBUG mode enabled!'));
80
+ this.log(chalk.bgYellow(chalk.black('DEBUG mode enabled!')));
81
81
  }
82
82
  if (this._isWatchMode) {
83
- this.log(chalk.bgYellow.black('WATCH mode enabled!'));
83
+ this.log(chalk.bgYellow(chalk.black('WATCH mode enabled!')));
84
84
  }
85
85
  this.log('');
86
86
  }
87
87
  onSpecRunning(rid) {
88
- this.onJobComplete(rid, this._jobs.get(rid), 0, chalk.bold.cyan('RUNNING'));
88
+ this.onJobComplete(rid, this._jobs.get(rid), 0, chalk.bold(chalk.cyan('RUNNING')));
89
89
  }
90
90
  onSpecRetry(rid, job, retries = 0) {
91
91
  const delayMsg = this._specFileRetriesDelay > 0 ? ` after ${this._specFileRetriesDelay}s` : '';
92
92
  this.onJobComplete(rid, job, retries, chalk.bold(chalk.yellow('RETRYING') + delayMsg));
93
93
  }
94
94
  onSpecPass(rid, job, retries = 0) {
95
- this.onJobComplete(rid, job, retries, chalk.bold.green('PASSED'));
95
+ this.onJobComplete(rid, job, retries, chalk.bold(chalk.green('PASSED')));
96
96
  }
97
97
  onSpecFailure(rid, job, retries = 0) {
98
- this.onJobComplete(rid, job, retries, chalk.bold.red('FAILED'));
98
+ this.onJobComplete(rid, job, retries, chalk.bold(chalk.red('FAILED')));
99
99
  }
100
100
  onSpecSkip(rid, job) {
101
101
  this.onJobComplete(rid, job, 0, 'SKIPPED', log.info);
@@ -205,7 +205,7 @@ export default class WDIOCLInterface extends EventEmitter {
205
205
  });
206
206
  }
207
207
  if (event.name === 'error') {
208
- return this.log(`[${event.cid}]`, chalk.white.bgRed.bold(' Error: '), event.content ? (event.content.message || event.content.stack || event.content) : '');
208
+ return this.log(`[${event.cid}]`, chalk.white(chalk.bgRed(chalk.bold(' Error: '))), event.content ? (event.content.message || event.content.stack || event.content) : '');
209
209
  }
210
210
  if (event.origin !== 'reporter' && event.origin !== 'debugger') {
211
211
  /**
@@ -245,7 +245,7 @@ export default class WDIOCLInterface extends EventEmitter {
245
245
  const reporter = this._messages.reporter;
246
246
  this._messages.reporter = {};
247
247
  for (const [reporterName, messages] of Object.entries(reporter)) {
248
- this.log('\n', chalk.bold.magenta(`"${reporterName}" Reporter:`));
248
+ this.log('\n', chalk.bold(chalk.magenta(`"${reporterName}" Reporter:`)));
249
249
  this.log(messages.join(''));
250
250
  }
251
251
  }
package/build/utils.js CHANGED
@@ -600,7 +600,7 @@ export async function createPackageJSON(parsedAnswers) {
600
600
  dependencies: {},
601
601
  devDependencies: {}
602
602
  }, null, 2));
603
- console.log(chalk.green.bold('✔ Success!\n'));
603
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
604
604
  }
605
605
  }
606
606
  /**
@@ -676,7 +676,7 @@ export async function npmInstall(parsedAnswers, npmTag) {
676
676
  console.log(`Installing packages using ${pm}:${SEP}${parsedAnswers.packagesToInstall.join(SEP)}`);
677
677
  const success = await installPackages(cwd, parsedAnswers.packagesToInstall, true);
678
678
  if (success) {
679
- console.log(chalk.green.bold('✔ Success!\n'));
679
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
680
680
  }
681
681
  }
682
682
  else {
@@ -788,7 +788,7 @@ export async function setupTypeScript(parsedAnswers) {
788
788
  };
789
789
  await fs.mkdir(path.dirname(parsedAnswers.tsConfigFilePath), { recursive: true });
790
790
  await fs.writeFile(parsedAnswers.tsConfigFilePath, JSON.stringify(config, null, 4));
791
- console.log(chalk.green.bold('✔ Success!\n'));
791
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
792
792
  }
793
793
  function getPreset(parsedAnswers) {
794
794
  const isUsingFramework = typeof parsedAnswers.preset === 'string';
@@ -830,7 +830,7 @@ export async function setupBabel(parsedAnswers) {
830
830
  }]
831
831
  ]
832
832
  }, null, 4)}`);
833
- console.log(chalk.green.bold('✔ Success!\n'));
833
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
834
834
  }
835
835
  }
836
836
  export async function createWDIOConfig(parsedAnswers) {
@@ -842,11 +842,11 @@ export async function createWDIOConfig(parsedAnswers) {
842
842
  _: new EjsHelpers({ useEsm: parsedAnswers.esmSupport, useTypeScript: parsedAnswers.isUsingTypeScript })
843
843
  });
844
844
  await fs.writeFile(parsedAnswers.wdioConfigPath, renderedTpl);
845
- console.log(chalk.green.bold('✔ Success!\n'));
845
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
846
846
  if (parsedAnswers.generateTestFiles) {
847
847
  console.log('Autogenerating test files...');
848
848
  await generateTestFiles(parsedAnswers);
849
- console.log(chalk.green.bold('✔ Success!\n'));
849
+ console.log(chalk.green(chalk.bold('✔ Success!\n')));
850
850
  }
851
851
  }
852
852
  catch (err) {
@@ -895,7 +895,7 @@ export async function createWDIOScript(parsedAnswers) {
895
895
  return false;
896
896
  }
897
897
  }
898
- console.log(chalk.green.bold('✔ Success!'));
898
+ console.log(chalk.green(chalk.bold('✔ Success!')));
899
899
  return true;
900
900
  }
901
901
  export async function runAppiumInstaller(parsedAnswers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "8.29.3",
3
+ "version": "8.29.7",
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",
@@ -48,9 +48,9 @@
48
48
  "@types/node": "^20.1.1",
49
49
  "@vitest/snapshot": "^1.2.1",
50
50
  "@wdio/config": "8.29.3",
51
- "@wdio/globals": "8.29.3",
51
+ "@wdio/globals": "8.29.7",
52
52
  "@wdio/logger": "8.28.0",
53
- "@wdio/protocols": "8.24.12",
53
+ "@wdio/protocols": "8.29.7",
54
54
  "@wdio/types": "8.29.1",
55
55
  "@wdio/utils": "8.29.3",
56
56
  "async-exit-hook": "^2.0.1",
@@ -67,7 +67,7 @@
67
67
  "lodash.union": "^4.6.0",
68
68
  "read-pkg-up": "^10.0.0",
69
69
  "recursive-readdir": "^2.2.3",
70
- "webdriverio": "8.29.3",
70
+ "webdriverio": "8.29.7",
71
71
  "yargs": "^17.7.2"
72
72
  },
73
73
  "devDependencies": {
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "4c6433be548950dc6ccf0efff77507dfa2f0b321"
86
+ "gitHead": "1c7195268663df56856494c69d7bd655c834a368"
87
87
  }