@wdio/cli 9.4.1 → 9.4.3

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.
@@ -232,12 +232,5 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
232
232
  }>>;
233
233
  export declare function launchWithStdin(wdioConfPath: string, params: Partial<RunCommandArguments>): void;
234
234
  export declare function launch(wdioConfPath: string, params: Partial<RunCommandArguments>): Promise<void>;
235
- declare enum NodeVersion {
236
- 'major' = 0,
237
- 'minor' = 1,
238
- 'patch' = 2
239
- }
240
- export declare function nodeVersion(type: keyof typeof NodeVersion): number;
241
- export declare function handler(argv: RunCommandArguments): Promise<false | void>;
242
- export {};
235
+ export declare function handler(argv: RunCommandArguments): Promise<void>;
243
236
  //# sourceMappingURL=run.d.ts.map
@@ -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;AAOjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,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,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA5DX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkDN,MAAM;;;;;GAoB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YA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AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,iBA2DtD"}
@@ -1,81 +1,6 @@
1
1
  import type { Options } from '@wdio/types';
2
2
  import type { Questionnair } from './types.js';
3
- export declare const pkg: {
4
- name: string;
5
- version: string;
6
- description: string;
7
- author: string;
8
- homepage: string;
9
- license: string;
10
- bin: {
11
- wdio: string;
12
- };
13
- engines: {
14
- node: string;
15
- };
16
- repository: {
17
- type: string;
18
- url: string;
19
- directory: string;
20
- };
21
- keywords: string[];
22
- bugs: {
23
- url: string;
24
- };
25
- main: string;
26
- type: string;
27
- module: string;
28
- types: string;
29
- exports: {
30
- ".": {
31
- types: string;
32
- import: string;
33
- requireSource: string;
34
- require: string;
35
- };
36
- };
37
- typeScriptVersion: string;
38
- dependencies: {
39
- "@types/node": string;
40
- "@vitest/snapshot": string;
41
- "@wdio/config": string;
42
- "@wdio/globals": string;
43
- "@wdio/logger": string;
44
- "@wdio/protocols": string;
45
- "@wdio/types": string;
46
- "@wdio/utils": string;
47
- "async-exit-hook": string;
48
- chalk: string;
49
- chokidar: string;
50
- "cli-spinners": string;
51
- dotenv: string;
52
- ejs: string;
53
- execa: string;
54
- "import-meta-resolve": string;
55
- inquirer: string;
56
- "lodash.flattendeep": string;
57
- "lodash.pickby": string;
58
- "lodash.union": string;
59
- "read-pkg-up": string;
60
- "recursive-readdir": string;
61
- tsx: string;
62
- webdriverio: string;
63
- yargs: string;
64
- };
65
- devDependencies: {
66
- "@types/async-exit-hook": string;
67
- "@types/ejs": string;
68
- "@types/inquirer": string;
69
- "@types/lodash.flattendeep": string;
70
- "@types/lodash.pickby": string;
71
- "@types/lodash.union": string;
72
- "@types/recursive-readdir": string;
73
- "@types/yargs": string;
74
- };
75
- publishConfig: {
76
- access: string;
77
- };
78
- };
3
+ export declare const pkg: any;
79
4
  export declare const CLI_EPILOGUE: string;
80
5
  export declare const CONFIG_HELPER_INTRO = "\n===============================\n\uD83E\uDD16 WDIO Configuration Wizard \uD83E\uDDD9\n===============================\n";
81
6
  export declare const SUPPORTED_COMMANDS: string[];
@@ -86,7 +11,7 @@ export declare const configHelperSuccessMessage: ({ projectRootDir, runScript, e
86
11
  runScript: string;
87
12
  extraInfo: string;
88
13
  }) => string;
89
- export declare const CONFIG_HELPER_SERENITY_BANNER = "\nLearn more about Serenity/JS:\n \uD83D\uDD17 https://serenity-js.org\n";
14
+ export declare const CONFIG_HELPER_SERENITY_BANNER = "\nLearn more about Serenity/JS:\n \uD83D\uDD17 https://serenity-js.org/\n \uD83D\uDD17 https://serenity-js.org/handbook/test-runners/webdriverio/\n";
90
15
  export declare const DEPENDENCIES_INSTALLATION_MESSAGE = "\nTo install dependencies, execute:\n%s\n";
91
16
  export declare const NPM_INSTALL = "";
92
17
  export declare const ANDROID_CONFIG: {
@@ -112,10 +37,15 @@ export declare const SUPPORTED_PACKAGES: {
112
37
  name: string;
113
38
  value: string;
114
39
  }[];
115
- reporter: {
40
+ reporter: ({
116
41
  name: string;
117
42
  value: string;
118
- }[];
43
+ checked: boolean;
44
+ } | {
45
+ name: string;
46
+ value: string;
47
+ checked?: undefined;
48
+ })[];
119
49
  plugin: {
120
50
  name: string;
121
51
  value: string;
@@ -162,10 +92,15 @@ export declare const MOBILE_ENVIRONMENTS: {
162
92
  name: string;
163
93
  value: string;
164
94
  }[];
165
- export declare const BROWSER_ENVIRONMENTS: {
95
+ export declare const BROWSER_ENVIRONMENTS: ({
166
96
  name: string;
167
97
  value: string;
168
- }[];
98
+ checked: boolean;
99
+ } | {
100
+ name: string;
101
+ value: string;
102
+ checked?: undefined;
103
+ })[];
169
104
  declare function isBrowserRunner(answers: Questionnair): boolean;
170
105
  export declare function usesSerenity(answers: Questionnair): boolean;
171
106
  export declare const isNuxtProject: boolean;
@@ -223,16 +158,6 @@ export declare const QUESTIONNAIRE: ({
223
158
  }[];
224
159
  default: string;
225
160
  when: (answers: Questionnair) => boolean;
226
- } | {
227
- type: string;
228
- name: string;
229
- message: string;
230
- choices: {
231
- name: string;
232
- value: string;
233
- }[];
234
- default: string[];
235
- when: (answers: Questionnair) => boolean;
236
161
  } | {
237
162
  type: string;
238
163
  name: string;
@@ -300,7 +225,7 @@ export declare const QUESTIONNAIRE: ({
300
225
  name: string;
301
226
  value: string;
302
227
  }[];
303
- default: string[];
228
+ default: never[];
304
229
  when?: undefined;
305
230
  } | {
306
231
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,aAAa,CAAA;AAS/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAU,CAAA;AAC1B,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,mBAAmB,8HAI/B,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAuC,CAAA;AACtE,eAAO,MAAM,GAAG,yCAA0C,CAAA;AAC1D,eAAO,MAAM,+BAA+B,UAA2C,CAAA;AACvF,eAAO,MAAM,0BAA0B,6CAAmD;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,WAYzJ,CAAA;AAED,eAAO,MAAM,6BAA6B,8EAGzC,CAAA;AAED,eAAO,MAAM,iCAAiC,8CAG7C,CAAA;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAE7B,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAoF9B,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;IAS5C,CAAA;AAED,eAAO,MAAM,wBAAwB,EAA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uB;IAC/B,aAAa,mDAAmD;IAChE,eAAe,mDAAmD;IAClE,aAAa,mBAAmB;CACnC;AAED,aAAK,eAAe;IAChB,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,oBAAY,aAAa;IACrB,EAAE,OAAO;IACT,EAAE,OAAO;CACZ;AAED,eAAO,MAAM,gBAAgB;;;GAG5B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;GAG/B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;IAKhC,CAAA;AAED,iBAAS,eAAe,CAAE,OAAO,EAAE,YAAY,WAE9C;AAED,wBAAgB,YAAY,CAAE,OAAO,EAAE,YAAY,WAElD;AAMD,eAAO,MAAM,aAAa,SAYV,CAAA;AAqBhB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBqB,YAAY;;;;;;;oBAYX,YAAY;;;;;;;oBAWZ,YAAY;;;;;;;;;;;oBAOb,YAAY;;;;;oBAuBZ,YAAY;;;;;;;;oBAMZ,YAAY;;;;;;;;oBAyBZ,YAAY;;;;;;oBAoDZ,YAAY;;;;;;;oBASZ,YAAY;;;;;;uBA0BR,YAAY;;;;;;;;;;oBAsBhB,YAAY;uBAST,YAAY;;;;;;uBA8DZ,YAAY;oBAKf,YAAY;;;;;;;;;;;;;;;;uBAqCpC,YAAY;;;;uBAuBZ,YAAY;;;;;;;;;IA8CjC,CAAA;AAGF,eAAO,MAAM,kCAAkC,UAM9C,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CA+SlG,CAAA;AAED,eAAO,MAAM,yBAAyB;sBAChB,MAAM;yBACH,MAAM;CAC9B,CAAA"}
package/build/index.js CHANGED
@@ -9,6 +9,7 @@ import "dotenv/config";
9
9
 
10
10
  // src/launcher.ts
11
11
  import exitHook from "async-exit-hook";
12
+ import { resolve as resolve2 } from "import-meta-resolve";
12
13
  import logger3 from "@wdio/logger";
13
14
  import { validateConfig } from "@wdio/config";
14
15
  import { ConfigParser as ConfigParser2 } from "@wdio/config/node";
@@ -82,93 +83,11 @@ function getInstallCommand(pm, packages, dev) {
82
83
  // src/constants.ts
83
84
  import fs from "node:fs";
84
85
  import path from "node:path";
86
+ import module from "node:module";
85
87
  import { HOOK_DEFINITION } from "@wdio/utils";
86
-
87
- // package.json
88
- var package_default = {
89
- name: "@wdio/cli",
90
- version: "9.4.0",
91
- description: "WebdriverIO testrunner command line interface",
92
- author: "Christian Bromann <mail@bromann.dev>",
93
- homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
94
- license: "MIT",
95
- bin: {
96
- wdio: "./bin/wdio.js"
97
- },
98
- engines: {
99
- node: ">=18.20.0"
100
- },
101
- repository: {
102
- type: "git",
103
- url: "git+https://github.com/webdriverio/webdriverio.git",
104
- directory: "packages/wdio-cli"
105
- },
106
- keywords: [
107
- "webdriver",
108
- "webdriverio",
109
- "wdio",
110
- "cli"
111
- ],
112
- bugs: {
113
- url: "https://github.com/webdriverio/webdriverio/issues"
114
- },
115
- main: "./build/index.cjs",
116
- type: "module",
117
- module: "./build/index.js",
118
- types: "./build/index.d.ts",
119
- exports: {
120
- ".": {
121
- types: "./build/index.d.ts",
122
- import: "./build/index.js",
123
- requireSource: "./src/index.cts",
124
- require: "./build/index.cjs"
125
- }
126
- },
127
- typeScriptVersion: "3.8.3",
128
- dependencies: {
129
- "@types/node": "^20.1.1",
130
- "@vitest/snapshot": "^2.1.1",
131
- "@wdio/config": "workspace:*",
132
- "@wdio/globals": "workspace:*",
133
- "@wdio/logger": "workspace:*",
134
- "@wdio/protocols": "workspace:*",
135
- "@wdio/types": "workspace:*",
136
- "@wdio/utils": "workspace:*",
137
- "async-exit-hook": "^2.0.1",
138
- chalk: "^5.2.0",
139
- chokidar: "^4.0.0",
140
- "cli-spinners": "^3.0.0",
141
- dotenv: "^16.3.1",
142
- ejs: "^3.1.9",
143
- execa: "^9.2.0",
144
- "import-meta-resolve": "^4.0.0",
145
- inquirer: "^11.0.1",
146
- "lodash.flattendeep": "^4.4.0",
147
- "lodash.pickby": "^4.6.0",
148
- "lodash.union": "^4.6.0",
149
- "read-pkg-up": "^10.0.0",
150
- "recursive-readdir": "^2.2.3",
151
- tsx: "^4.7.2",
152
- webdriverio: "workspace:*",
153
- yargs: "^17.7.2"
154
- },
155
- devDependencies: {
156
- "@types/async-exit-hook": "^2.0.0",
157
- "@types/ejs": "^3.1.2",
158
- "@types/inquirer": "^9.0.3",
159
- "@types/lodash.flattendeep": "^4.4.7",
160
- "@types/lodash.pickby": "^4.6.7",
161
- "@types/lodash.union": "^4.6.7",
162
- "@types/recursive-readdir": "^2.2.1",
163
- "@types/yargs": "^17.0.24"
164
- },
165
- publishConfig: {
166
- access: "public"
167
- }
168
- };
169
-
170
- // src/constants.ts
171
- var pkg = package_default;
88
+ var require2 = module.createRequire(import.meta.url);
89
+ var pkgJSON = require2("../package.json");
90
+ var pkg = pkgJSON;
172
91
  var CLI_EPILOGUE = `Documentation: https://webdriver.io
173
92
  @wdio/cli (v${pkg.version})`;
174
93
  var CONFIG_HELPER_INTRO = `
@@ -194,7 +113,8 @@ $ npm run ${runScript}
194
113
  `;
195
114
  var CONFIG_HELPER_SERENITY_BANNER = `
196
115
  Learn more about Serenity/JS:
197
- \u{1F517} https://serenity-js.org
116
+ \u{1F517} https://serenity-js.org/
117
+ \u{1F517} https://serenity-js.org/handbook/test-runners/webdriverio/
198
118
  `;
199
119
  var DEPENDENCIES_INSTALLATION_MESSAGE = `
200
120
  To install dependencies, execute:
@@ -227,7 +147,7 @@ var SUPPORTED_PACKAGES = {
227
147
  { name: "Cucumber with Serenity/JS (https://serenity-js.org/)", value: "@serenity-js/webdriverio$--$@serenity-js/webdriverio$--$cucumber" }
228
148
  ],
229
149
  reporter: [
230
- { name: "spec", value: "@wdio/spec-reporter$--$spec" },
150
+ { name: "spec", value: "@wdio/spec-reporter$--$spec", checked: true },
231
151
  { name: "dot", value: "@wdio/dot-reporter$--$dot" },
232
152
  { name: "junit", value: "@wdio/junit-reporter$--$junit" },
233
153
  { name: "allure", value: "@wdio/allure-reporter$--$allure" },
@@ -346,7 +266,7 @@ var MOBILE_ENVIRONMENTS = [
346
266
  { name: "iOS - applications on iOS, iPadOS, and tvOS\n > using XCTest (https://appium.github.io/appium-xcuitest-driver)", value: "ios" }
347
267
  ];
348
268
  var BROWSER_ENVIRONMENTS = [
349
- { name: "Chrome", value: "chrome" },
269
+ { name: "Chrome", value: "chrome", checked: true },
350
270
  { name: "Firefox", value: "firefox" },
351
271
  { name: "Safari", value: "safari" },
352
272
  { name: "Microsoft Edge", value: "MicrosoftEdge" }
@@ -464,7 +384,6 @@ var QUESTIONNAIRE = [{
464
384
  name: "browserEnvironment",
465
385
  message: "With which browser should we start?",
466
386
  choices: BROWSER_ENVIRONMENTS,
467
- default: ["chrome"],
468
387
  when: (
469
388
  /* instanbul ignore next */
470
389
  (answers) => getTestingPurpose(answers) === "e2e" && answers.e2eEnvironment === "web"
@@ -756,14 +675,7 @@ var QUESTIONNAIRE = [{
756
675
  type: "checkbox",
757
676
  name: "reporters",
758
677
  message: "Which reporter do you want to use?",
759
- choices: SUPPORTED_PACKAGES.reporter,
760
- // @ts-ignore
761
- default: [
762
- SUPPORTED_PACKAGES.reporter.find(
763
- /* istanbul ignore next */
764
- ({ name }) => name === "spec"
765
- ).value
766
- ]
678
+ choices: SUPPORTED_PACKAGES.reporter
767
679
  }, {
768
680
  type: "checkbox",
769
681
  name: "plugins",
@@ -1495,7 +1407,7 @@ async function getAnswers(yes) {
1495
1407
  continue;
1496
1408
  }
1497
1409
  Object.assign(answers, {
1498
- [question.name]: typeof question.default !== "undefined" ? typeof question.default === "function" ? await question.default(answers) : await question.default : question.choices && question.choices.length ? typeof question.choices === "function" ? question.choices(answers)[0].value ? question.choices(answers)[0].value : question.choices(answers)[0] : question.choices[0].value ? question.choices[0].value : question.choices[0] : {}
1410
+ [question.name]: typeof question.default !== "undefined" ? typeof question.default === "function" ? await question.default(answers) : await question.default : question.choices && question.choices.length ? typeof question.choices === "function" ? question.choices(answers)[0].value ? question.choices(answers)[0].value : question.choices(answers)[0] : question.choices[0].value ? question.type === "checkbox" ? [question.choices[0].value] : question.choices[0].value : question.choices[0] : {}
1499
1411
  });
1500
1412
  }
1501
1413
  answers.isUsingTypeScript = await answers.isUsingTypeScript;
@@ -1593,7 +1505,7 @@ async function getProjectProps(cwd = process.cwd()) {
1593
1505
  }
1594
1506
  function runProgram(command5, args, options) {
1595
1507
  const child = spawn(command5, args, { stdio: "inherit", ...options });
1596
- return new Promise((resolve2, reject) => {
1508
+ return new Promise((resolve3, reject) => {
1597
1509
  let error;
1598
1510
  child.on("error", (e) => error = e);
1599
1511
  child.on("close", (code) => {
@@ -1602,7 +1514,7 @@ function runProgram(command5, args, options) {
1602
1514
  error && error.message || `Error calling: ${command5} ${args.join(" ")}`
1603
1515
  ));
1604
1516
  }
1605
- resolve2();
1517
+ resolve3();
1606
1518
  });
1607
1519
  });
1608
1520
  }
@@ -1819,8 +1731,7 @@ async function createWDIOScript(parsedAnswers) {
1819
1731
  "wdio": `wdio run ${pathToWdioConfig}`
1820
1732
  };
1821
1733
  const serenityScripts = {
1822
- "serenity": "failsafe serenity:update serenity:clean wdio serenity:report",
1823
- "serenity:update": "serenity-bdd update",
1734
+ "serenity": "failsafe serenity:clean wdio serenity:report",
1824
1735
  "serenity:clean": "rimraf target",
1825
1736
  "wdio": `wdio run ${pathToWdioConfig}`,
1826
1737
  "serenity:report": "serenity-bdd run"
@@ -1948,6 +1859,15 @@ function coerceOptsFor(framework) {
1948
1859
  }
1949
1860
  throw new Error(`Unsupported framework "${framework}"`);
1950
1861
  }
1862
+ var NodeVersion = /* @__PURE__ */ ((NodeVersion2) => {
1863
+ NodeVersion2[NodeVersion2["major"] = 0] = "major";
1864
+ NodeVersion2[NodeVersion2["minor"] = 1] = "minor";
1865
+ NodeVersion2[NodeVersion2["patch"] = 2] = "patch";
1866
+ return NodeVersion2;
1867
+ })(NodeVersion || {});
1868
+ function nodeVersion(type) {
1869
+ return process.versions.node.split(".").map(Number)[NodeVersion[type]];
1870
+ }
1951
1871
 
1952
1872
  // src/interface.ts
1953
1873
  var log2 = logger2("@wdio/cli");
@@ -2243,6 +2163,14 @@ var Launcher = class {
2243
2163
  * @return {Promise} that only gets resolved with either an exitCode or an error
2244
2164
  */
2245
2165
  async run() {
2166
+ const tsxPath = resolve2("tsx", import.meta.url);
2167
+ if (!process.env.NODE_OPTIONS || !process.env.NODE_OPTIONS.includes(tsxPath)) {
2168
+ const moduleLoaderFlag = nodeVersion("major") >= 21 || nodeVersion("major") === 20 && nodeVersion("minor") >= 6 || nodeVersion("major") === 18 && nodeVersion("minor") >= 19 ? "--import" : "--loader";
2169
+ process.env.NODE_OPTIONS = `${process.env.NODE_OPTIONS || ""} ${moduleLoaderFlag} ${tsxPath}`;
2170
+ }
2171
+ if (this._configFilePath.endsWith(".ts")) {
2172
+ await import(tsxPath);
2173
+ }
2246
2174
  await this.configParser.initialize(this._args);
2247
2175
  const config = this.configParser.getConfig();
2248
2176
  const capabilities = this.configParser.getCapabilities();
@@ -2254,8 +2182,8 @@ var Launcher = class {
2254
2182
  const totalWorkerCnt = Array.isArray(capabilities) ? capabilities.map((c) => {
2255
2183
  if (this.isParallelMultiremote) {
2256
2184
  const keys = Object.keys(c);
2257
- const caps = c[keys[0]].capabilities;
2258
- return this.configParser.getSpecs(caps["wdio:specs"], caps["wdio:exclude"]).length;
2185
+ const caps2 = c[keys[0]].capabilities;
2186
+ return this.configParser.getSpecs(caps2["wdio:specs"], caps2["wdio:exclude"]).length;
2259
2187
  }
2260
2188
  const standaloneCaps = c;
2261
2189
  const cap = "alwaysMatch" in standaloneCaps ? standaloneCaps.alwaysMatch : standaloneCaps;
@@ -2269,8 +2197,8 @@ var Launcher = class {
2269
2197
  exitHook(this._exitHandler.bind(this));
2270
2198
  let exitCode = 0;
2271
2199
  let error = void 0;
2200
+ const caps = this.configParser.getCapabilities();
2272
2201
  try {
2273
- const caps = this.configParser.getCapabilities();
2274
2202
  const { ignoredWorkerServices, launcherServices } = await initializeLauncherService(config, caps);
2275
2203
  this._launcher = launcherServices;
2276
2204
  this._args.ignoredWorkerServices = ignoredWorkerServices;
@@ -2283,10 +2211,6 @@ var Launcher = class {
2283
2211
  setupBrowser(config, caps)
2284
2212
  ]);
2285
2213
  exitCode = await this._runMode(config, caps);
2286
- log3.info("Run onComplete hook");
2287
- const onCompleteResults = await runOnCompleteHook(config.onComplete, config, caps, exitCode, this.interface.result);
2288
- await runServiceHook(this._launcher, "onComplete", exitCode, config, caps);
2289
- exitCode = onCompleteResults.includes(1) ? 1 : exitCode;
2290
2214
  await logger3.waitForBuffer();
2291
2215
  this.interface.finalise();
2292
2216
  } catch (err) {
@@ -2299,6 +2223,7 @@ var Launcher = class {
2299
2223
  exitCode = exitCode || 1;
2300
2224
  }
2301
2225
  }
2226
+ exitCode = await this.#runOnCompleteHook(config, caps, exitCode);
2302
2227
  }
2303
2228
  if (error) {
2304
2229
  this.interface.logHookError(error);
@@ -2306,6 +2231,21 @@ var Launcher = class {
2306
2231
  }
2307
2232
  return exitCode;
2308
2233
  }
2234
+ /**
2235
+ * run onComplete hook
2236
+ * Even if it fails we still want to see result and end logger stream.
2237
+ * Also ensure that user hooks are run before service hooks so that e.g.
2238
+ * a user can use plugin service, e.g. shared store service is still
2239
+ * available running hooks in this order
2240
+ */
2241
+ async #runOnCompleteHook(config, caps, exitCode) {
2242
+ log3.info("Run onComplete hook");
2243
+ const onCompleteResults = await runOnCompleteHook(config.onComplete, config, caps, exitCode, this.interface.result);
2244
+ if (this._launcher) {
2245
+ await runServiceHook(this._launcher, "onComplete", exitCode, config, caps);
2246
+ }
2247
+ return onCompleteResults.includes(1) ? 1 : exitCode;
2248
+ }
2309
2249
  /**
2310
2250
  * run without triggering onPrepare/onComplete hooks
2311
2251
  */
@@ -2322,9 +2262,9 @@ var Launcher = class {
2322
2262
  */
2323
2263
  !Array.isArray(caps) && Object.keys(caps).length === 0
2324
2264
  ) {
2325
- return new Promise((resolve2) => {
2265
+ return new Promise((resolve3) => {
2326
2266
  log3.error("Missing capabilities, exiting with failure");
2327
- return resolve2(1);
2267
+ return resolve3(1);
2328
2268
  });
2329
2269
  }
2330
2270
  const specFileRetries = this._isWatchMode ? 0 : config.specFileRetries;
@@ -2349,19 +2289,19 @@ var Launcher = class {
2349
2289
  });
2350
2290
  }
2351
2291
  }
2352
- return new Promise((resolve2) => {
2353
- this._resolve = resolve2;
2292
+ return new Promise((resolve3) => {
2293
+ this._resolve = resolve3;
2354
2294
  if (Object.values(this._schedule).reduce((specCnt, schedule) => specCnt + schedule.specs.length, 0) === 0) {
2355
2295
  const { total, current } = config.shard;
2356
2296
  if (total > 1) {
2357
2297
  log3.info(`No specs to execute in shard ${current}/${total}, exiting!`);
2358
- return resolve2(0);
2298
+ return resolve3(0);
2359
2299
  }
2360
2300
  log3.error("No specs found to run, exiting with failure");
2361
- return resolve2(1);
2301
+ return resolve3(1);
2362
2302
  }
2363
2303
  if (this._runSpecs()) {
2364
- resolve2(0);
2304
+ resolve3(0);
2365
2305
  }
2366
2306
  });
2367
2307
  }
@@ -2902,12 +2842,10 @@ __export(run_exports, {
2902
2842
  desc: () => desc3,
2903
2843
  handler: () => handler3,
2904
2844
  launch: () => launch,
2905
- launchWithStdin: () => launchWithStdin,
2906
- nodeVersion: () => nodeVersion
2845
+ launchWithStdin: () => launchWithStdin
2907
2846
  });
2908
- import path5 from "node:path";
2909
2847
  import fs5 from "node:fs/promises";
2910
- import { execa as execa2 } from "execa";
2848
+ import path5 from "node:path";
2911
2849
 
2912
2850
  // src/watcher.ts
2913
2851
  import url from "node:url";
@@ -3167,15 +3105,6 @@ async function launch(wdioConfPath, params) {
3167
3105
  }
3168
3106
  });
3169
3107
  }
3170
- var NodeVersion = /* @__PURE__ */ ((NodeVersion2) => {
3171
- NodeVersion2[NodeVersion2["major"] = 0] = "major";
3172
- NodeVersion2[NodeVersion2["minor"] = 1] = "minor";
3173
- NodeVersion2[NodeVersion2["patch"] = 2] = "patch";
3174
- return NodeVersion2;
3175
- })(NodeVersion || {});
3176
- function nodeVersion(type) {
3177
- return process.versions.node.split(".").map(Number)[NodeVersion[type]];
3178
- }
3179
3108
  async function handler3(argv) {
3180
3109
  const { configPath = "wdio.conf.js", ...params } = argv;
3181
3110
  const wdioConf = await formatConfigFilePaths(configPath);
@@ -3187,34 +3116,13 @@ async function handler3(argv) {
3187
3116
  process.exit(1);
3188
3117
  }
3189
3118
  }
3190
- const nodePath = process.argv[0];
3191
- let NODE_OPTIONS = process.env.NODE_OPTIONS || "";
3192
- const isTSFile = wdioConf.fullPath.endsWith(".ts") || wdioConf.fullPath.endsWith(".mts") || confAccess?.endsWith(".ts") || confAccess?.endsWith(".mts");
3193
- const runsWithLoader = Boolean(
3194
- process.argv.find((arg) => arg.startsWith("--import") || arg.startsWith("--loader")) && process.argv.find((arg) => arg.endsWith("tsx"))
3195
- ) || NODE_OPTIONS?.includes("tsx");
3196
- if (isTSFile && !runsWithLoader && nodePath) {
3197
- const moduleLoaderFlag = nodeVersion("major") >= 21 || nodeVersion("major") === 20 && nodeVersion("minor") >= 6 || nodeVersion("major") === 18 && nodeVersion("minor") >= 19 ? "--import" : "--loader";
3198
- NODE_OPTIONS += ` ${moduleLoaderFlag} tsx`;
3199
- 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);
3200
- const tsConfigPathFromParams = params.tsConfigPath && path5.resolve(process.cwd(), params.tsConfigPath);
3201
- const tsConfigPathRelativeToWdioConfig = path5.join(path5.dirname(wdioConf.fullPath), "tsconfig.json");
3202
- if (tsConfigPathFromParams) {
3203
- console.log("Deprecated: use the TSCONFIG_PATH environment variable instead");
3204
- }
3205
- const localTSConfigPath = tsConfigPathFromEnvVar || tsConfigPathFromParams || tsConfigPathRelativeToWdioConfig;
3206
- const hasLocalTSConfig = await fs5.access(localTSConfigPath).then(() => true, () => false);
3207
- const p = await execa2(nodePath, process.argv.slice(1), {
3208
- reject: false,
3209
- cwd: process.cwd(),
3210
- stdio: "inherit",
3211
- env: {
3212
- ...process.env,
3213
- ...hasLocalTSConfig ? { TSX_TSCONFIG_PATH: localTSConfigPath } : {},
3214
- NODE_OPTIONS
3215
- }
3216
- });
3217
- return !process.env.WDIO_UNIT_TESTS && process.exit(p.exitCode);
3119
+ 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);
3120
+ const tsConfigPathFromParams = params.tsConfigPath && path5.resolve(process.cwd(), params.tsConfigPath);
3121
+ const tsConfigPathRelativeToWdioConfig = path5.join(path5.dirname(wdioConf.fullPath), "tsconfig.json");
3122
+ const localTSConfigPath = tsConfigPathFromEnvVar || tsConfigPathFromParams || tsConfigPathRelativeToWdioConfig;
3123
+ const hasLocalTSConfig = await fs5.access(localTSConfigPath).then(() => true, () => false);
3124
+ if (hasLocalTSConfig) {
3125
+ process.env.TSX_TSCONFIG_PATH = localTSConfigPath;
3218
3126
  }
3219
3127
  if (params.watch) {
3220
3128
  const watcher = new Watcher(wdioConf.fullPath, params);
@@ -3306,7 +3214,7 @@ Commands:` }).version(pkg.version).epilogue(CLI_EPILOGUE);
3306
3214
  return cp;
3307
3215
  } catch (err) {
3308
3216
  const output = await new Promise(
3309
- (resolve2) => yargs(hideBin(process.argv)).parse("--help", (err2, argv2, output2) => resolve2(output2))
3217
+ (resolve3) => yargs(hideBin(process.argv)).parse("--help", (err2, argv2, output2) => resolve3(output2))
3310
3218
  );
3311
3219
  console.error(`${output}
3312
3220
 
@@ -9,6 +9,7 @@ export interface EndMessage {
9
9
  retries: number;
10
10
  }
11
11
  declare class Launcher {
12
+ #private;
12
13
  private _configFilePath;
13
14
  private _args;
14
15
  private _isWatchMode;
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGhD,OAAO,KAAK,EAAyB,QAAQ,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,WAAW,MAAM,gBAAgB,CAAA;AAIxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAiBrD,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,cAAM,QAAQ;IAkBN,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,YAAY;IAnBjB,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,UAAQ;IACrB,qBAAqB,UAAQ;IAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAA;IAChC,SAAS,CAAC,EAAE,WAAW,CAAA;IAE9B,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,wBAAwB,CAAQ;IACxC,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,IAAI,CAAe;IAC3B,OAAO,CAAC,cAAc,CAAI;IAC1B,OAAO,CAAC,aAAa,CAAI;IAEzB,OAAO,CAAC,SAAS,CAAC,CAA4B;IAC9C,OAAO,CAAC,QAAQ,CAAC,CAAU;gBAGf,eAAe,EAAE,MAAM,EACvB,KAAK,GAAE,OAAO,CAAC,mBAAmB,CAAM,EACxC,YAAY,UAAQ;IAKhC;;;OAGG;IACG,GAAG,IAAI,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC;IA8GxC;;OAEG;IACH,OAAO,CAAC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3B,OAAO,CAAC,cAAc,CAAI;IAC1B,OAAO,CAAC,aAAa,CAAI;IAEzB,OAAO,CAAC,SAAS,CAAC,CAA4B;IAC9C,OAAO,CAAC,QAAQ,CAAC,CAAU;gBAGf,eAAe,EAAE,MAAM,EACvB,KAAK,GAAE,OAAO,CAAC,mBAAmB,CAAM,EACxC,YAAY,UAAQ;IAKhC;;;OAGG;IACG,GAAG,IAAI,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC;IA8IxC;;OAEG;IACH,OAAO,CAAC,QAAQ;IA4FhB;;OAEG;IACH,OAAO,CAAC,YAAY;IAiCpB;;;OAGG;IACH,OAAO,CAAC,SAAS;IAmEjB;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAI7B;;;;;;OAMG;YACW,cAAc;IAuG5B,OAAO,CAAC,gBAAgB;IAWxB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;;;OAMG;YACW,WAAW;IA0DzB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;CAG7B;AAED,eAAe,QAAQ,CAAA"}
package/build/run.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export default function run(): Promise<false | void>;
1
+ export default function run(): Promise<void>;
2
2
  //# sourceMappingURL=run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAuBA,wBAA8B,GAAG,0BA+DhC"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAuBA,wBAA8B,GAAG,kBA+DhC"}
@@ -23,7 +23,7 @@
23
23
  * - Serenity/JS REST module - https://serenity-js.org/api/rest/
24
24
  * - Serenity/JS assertions module - https://serenity-js.org/api/assertions/
25
25
  */
26
- describe('Serenity/JS Website', () => {
26
+ describe('Example', () => {
27
27
 
28
28
  /**
29
29
  * This is the most basic example of a Serenity/JS Screenplay Pattern test scenario.
@@ -25,7 +25,7 @@
25
25
  * - Serenity/JS REST module - https://serenity-js.org/api/rest/
26
26
  * - Serenity/JS assertions module - https://serenity-js.org/api/assertions/
27
27
  */
28
- describe('Serenity/JS Website', () => {
28
+ describe('Example', () => {
29
29
 
30
30
  /**
31
31
  * This is the most basic example of a Serenity/JS Screenplay Pattern test scenario.
package/build/utils.d.ts CHANGED
@@ -144,5 +144,11 @@ type CLIParams = {
144
144
  };
145
145
  export declare function coerceOpts(types: Record<string, string>, opts: CLIParams): CLIParams;
146
146
  export declare function coerceOptsFor(framework: 'cucumber' | 'mocha' | 'jasmine'): (opts: CLIParams) => CLIParams;
147
+ declare enum NodeVersion {
148
+ 'major' = 0,
149
+ 'minor' = 1,
150
+ 'patch' = 2
151
+ }
152
+ export declare function nodeVersion(type: keyof typeof NodeVersion): number;
147
153
  export {};
148
154
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAYtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAGhD,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAclE,OAAO,KAAK,EACR,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EACnB,MAAM,YAAY,CAAA;AASnB,eAAO,MAAM,UAAU,EAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAEnH,qBAAa,SAAU,SAAQ,kBAAkB;IACtC,MAAM,EAAE,MAAM,CAAA;gBACT,OAAO,EAAE,MAAM,EAAE,M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CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,EAAE,CAAA;CAAE,CAAA;AAE3F,wBAAgB,UAAU,CACtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,IAAI,EAAE,SAAS,aAclB;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,kCAUxE;AAED,aAAK,WAAW;IACZ,OAAO,IAAI;IACX,OAAO,IAAI;IACX,OAAO,IAAI;CACd;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,OAAO,WAAW,GAAG,MAAM,CAElE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "9.4.1",
3
+ "version": "9.4.3",
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,16 +41,15 @@
41
41
  "dependencies": {
42
42
  "@types/node": "^20.1.1",
43
43
  "@vitest/snapshot": "^2.1.1",
44
- "@wdio/config": "9.2.8",
45
- "@wdio/globals": "9.4.1",
44
+ "@wdio/config": "9.4.3",
45
+ "@wdio/globals": "9.4.3",
46
46
  "@wdio/logger": "9.1.3",
47
47
  "@wdio/protocols": "9.2.2",
48
- "@wdio/types": "9.2.2",
49
- "@wdio/utils": "9.2.8",
48
+ "@wdio/types": "9.4.3",
49
+ "@wdio/utils": "9.4.3",
50
50
  "async-exit-hook": "^2.0.1",
51
51
  "chalk": "^5.2.0",
52
52
  "chokidar": "^4.0.0",
53
- "cli-spinners": "^3.0.0",
54
53
  "dotenv": "^16.3.1",
55
54
  "ejs": "^3.1.9",
56
55
  "execa": "^9.2.0",
@@ -62,7 +61,7 @@
62
61
  "read-pkg-up": "^10.0.0",
63
62
  "recursive-readdir": "^2.2.3",
64
63
  "tsx": "^4.7.2",
65
- "webdriverio": "9.4.1",
64
+ "webdriverio": "9.4.3",
66
65
  "yargs": "^17.7.2"
67
66
  },
68
67
  "devDependencies": {
@@ -78,5 +77,5 @@
78
77
  "publishConfig": {
79
78
  "access": "public"
80
79
  },
81
- "gitHead": "237685b97c0cee717c98ae9e906f738dab81004f"
80
+ "gitHead": "8ee63eaefd86cf06eea832bb8d4c1920e9cc4e55"
82
81
  }