@wdio/cli 8.8.3 → 8.8.6

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,15 +1,2 @@
1
- import type { RunCommandArguments } from '../types.js';
2
- export declare class Launcher {
3
- #private;
4
- private configFilePath;
5
- private args;
6
- private isWatchMode;
7
- constructor(configFilePath: string, args?: Partial<RunCommandArguments>, isWatchMode?: boolean);
8
- /**
9
- * run sequence
10
- * @return {Promise} that only gets resolved with either an exitCode or an error
11
- */
12
- run(): Promise<undefined | number>;
13
- }
14
- export declare function run(): Promise<false | void>;
1
+ export {};
15
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,qBAAa,QAAQ;;IAKb,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,WAAW;gBAFX,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,OAAO,CAAC,mBAAmB,CAAM,EACvC,WAAW,UAAQ;IAK/B;;;OAGG;IACG,GAAG,IAAI,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC;CAG3C;AAED,wBAAsB,GAAG,IAAI,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAGjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export class Launcher {
1
+ class Launcher {
2
2
  configFilePath;
3
3
  args;
4
4
  isWatchMode;
@@ -17,7 +17,9 @@ export class Launcher {
17
17
  return this.#esmLauncher.run();
18
18
  }
19
19
  }
20
- export async function run() {
20
+ async function run() {
21
21
  const { run } = await import('../index.js');
22
22
  return run();
23
23
  }
24
+ module.exports = { Launcher, run };
25
+
@@ -8,7 +8,7 @@ export declare const EXCLUSIVE_SERVICES: {
8
8
  };
9
9
  };
10
10
  export declare const CONFIG_HELPER_INTRO = "\n===============================\n\uD83E\uDD16 WDIO Configuration Wizard \uD83E\uDDD9\n===============================\n";
11
- export declare const CONFIG_HELPER_SUCCESS_MESSAGE = "\n\uD83E\uDD16 Successfully setup project at %s \uD83C\uDF89\n\nJoin our Matrix community and instantly find answers to your issues or queries. Or just join and say hi \uD83D\uDC4B!\n \uD83D\uDD17 https://matrix.to/#/#webdriver.io:gitter.im\n\nVisit the project on GitHub to report bugs \uD83D\uDC1B or raise feature requests \uD83D\uDCA1:\n \uD83D\uDD17 https://github.com/webdriverio/webdriverio\n\nTo run your tests, execute:\n$ cd %s\n$ npm run wdio\n";
11
+ export declare const CONFIG_HELPER_SUCCESS_MESSAGE = "\n\uD83E\uDD16 Successfully setup project at %s \uD83C\uDF89\n\nJoin our Discord Community Server and instantly find answers to your issues or queries. Or just join and say hi \uD83D\uDC4B!\n \uD83D\uDD17 https://discord.webdriver.io\n\nVisit the project on GitHub to report bugs \uD83D\uDC1B or raise feature requests \uD83D\uDCA1:\n \uD83D\uDD17 https://github.com/webdriverio/webdriverio\n\nTo run your tests, execute:\n$ cd %s\n$ npm run wdio\n";
12
12
  export declare const DEPENDENCIES_INSTALLATION_MESSAGE = "\nTo install dependencies, execute:\n%s\n";
13
13
  export declare const NPM_INSTALL = "";
14
14
  export declare const ANDROID_CONFIG: {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,GAAG,KAA6B,CAAA;AAE7C,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,mBAAmB,8HAI/B,CAAA;AAED,eAAO,MAAM,6BAA6B,8cAYzC,CAAA;AAED,eAAO,M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CESS_MESSAGE = `
18
18
  🤖 Successfully setup project at %s 🎉
19
19
 
20
- Join our Matrix community and instantly find answers to your issues or queries. Or just join and say hi 👋!
21
- 🔗 https://matrix.to/#/#webdriver.io:gitter.im
20
+ Join our Discord Community Server and instantly find answers to your issues or queries. Or just join and say hi 👋!
21
+ 🔗 https://discord.webdriver.io
22
22
 
23
23
  Visit the project on GitHub to report bugs 🐛 or raise feature requests 💡:
24
24
  🔗 https://github.com/webdriverio/webdriverio
@@ -56,24 +56,24 @@ declare class Launcher {
56
56
  /**
57
57
  * Start instance in a child process.
58
58
  * @param {Array} specs Specs to run
59
- * @param {Number} cid Capabilities ID
60
- * @param {String} rid Runner ID override
61
- * @param {Number} retries Number of retries remaining
59
+ * @param {number} cid Capabilities ID
60
+ * @param {string} rid Runner ID override
61
+ * @param {number} retries Number of retries remaining
62
62
  */
63
63
  private _startInstance;
64
64
  private _workerHookError;
65
65
  /**
66
66
  * generates a runner id
67
- * @param {Number} cid capability id (unique identifier for a capability)
67
+ * @param {number} cid capability id (unique identifier for a capability)
68
68
  * @return {String} runner id (combination of cid and test id e.g. 0a, 0b, 1a, 1b ...)
69
69
  */
70
70
  private _getRunnerId;
71
71
  /**
72
72
  * Close test runner process once all child processes have exited
73
- * @param {Number} cid Capabilities ID
74
- * @param {Number} exitCode exit code of child process
73
+ * @param {number} cid Capabilities ID
74
+ * @param {number} exitCode exit code of child process
75
75
  * @param {Array} specs Specs that were run
76
- * @param {Number} retries Number or retries remaining
76
+ * @param {number} retries Number or retries remaining
77
77
  */
78
78
  private _endHandler;
79
79
  /**
package/build/launcher.js CHANGED
@@ -275,9 +275,9 @@ class Launcher {
275
275
  /**
276
276
  * Start instance in a child process.
277
277
  * @param {Array} specs Specs to run
278
- * @param {Number} cid Capabilities ID
279
- * @param {String} rid Runner ID override
280
- * @param {Number} retries Number of retries remaining
278
+ * @param {number} cid Capabilities ID
279
+ * @param {string} rid Runner ID override
280
+ * @param {number} retries Number of retries remaining
281
281
  */
282
282
  async _startInstance(specs, caps, cid, rid, retries) {
283
283
  if (!this.runner || !this.interface) {
@@ -365,7 +365,7 @@ class Launcher {
365
365
  }
366
366
  /**
367
367
  * generates a runner id
368
- * @param {Number} cid capability id (unique identifier for a capability)
368
+ * @param {number} cid capability id (unique identifier for a capability)
369
369
  * @return {String} runner id (combination of cid and test id e.g. 0a, 0b, 1a, 1b ...)
370
370
  */
371
371
  _getRunnerId(cid) {
@@ -376,10 +376,10 @@ class Launcher {
376
376
  }
377
377
  /**
378
378
  * Close test runner process once all child processes have exited
379
- * @param {Number} cid Capabilities ID
380
- * @param {Number} exitCode exit code of child process
379
+ * @param {number} cid Capabilities ID
380
+ * @param {number} exitCode exit code of child process
381
381
  * @param {Array} specs Specs that were run
382
- * @param {Number} retries Number or retries remaining
382
+ * @param {number} retries Number or retries remaining
383
383
  */
384
384
  async _endHandler({ cid: rid, exitCode, specs, retries }) {
385
385
  const passed = this._isWatchModeHalted() || exitCode === 0;
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Function to be executed after a test (in Mocha/Jasmine only)
3
- * @param {Object} test test object
4
- * @param {Object} context scope object the test was executed with
3
+ * @param {object} test test object
4
+ * @param {object} context scope object the test was executed with
5
5
  * @param {Error} result.error error object in case the test fails, otherwise `undefined`
6
- * @param {Any} result.result return object of test function
7
- * @param {Number} result.duration duration of test
8
- * @param {Boolean} result.passed true if test has passed, otherwise false
9
- * @param {Object} result.retries informations to spec related retries, e.g. `{ attempts: 0, limit: 0 }`
6
+ * @param {*} result.result return object of test function
7
+ * @param {number} result.duration duration of test
8
+ * @param {boolean} result.passed true if test has passed, otherwise false
9
+ * @param {object} result.retries informations to spec related retries, e.g. `{ attempts: 0, limit: 0 }`
10
10
  */<%
11
11
  if (reporters.length && reporters.includes('allure')) {%>
12
12
  afterTest: async function(test, context, { error, result, duration, passed, retries }) {
@@ -271,7 +271,7 @@ export const config: Options.Testrunner = {<%
271
271
  // resolved to continue.
272
272
  /**
273
273
  * Gets executed once before all workers get launched.
274
- * @param {Object} config wdio configuration object
274
+ * @param {object} config wdio configuration object
275
275
  * @param {Array.<Object>} capabilities list of capabilities details
276
276
  */
277
277
  // onPrepare: function (config, capabilities) {
@@ -279,30 +279,30 @@ export const config: Options.Testrunner = {<%
279
279
  /**
280
280
  * Gets executed before a worker process is spawned and can be used to initialise specific service
281
281
  * for that worker as well as modify runtime environments in an async fashion.
282
- * @param {String} cid capability id (e.g 0-0)
283
- * @param {[type]} caps object containing capabilities for session that will be spawn in the worker
284
- * @param {[type]} specs specs to be run in the worker process
285
- * @param {[type]} args object that will be merged with the main configuration once worker is initialized
286
- * @param {[type]} execArgv list of string arguments passed to the worker process
282
+ * @param {string} cid capability id (e.g 0-0)
283
+ * @param {object} caps object containing capabilities for session that will be spawn in the worker
284
+ * @param {object} specs specs to be run in the worker process
285
+ * @param {object} args object that will be merged with the main configuration once worker is initialized
286
+ * @param {object} execArgv list of string arguments passed to the worker process
287
287
  */
288
288
  // onWorkerStart: function (cid, caps, specs, args, execArgv) {
289
289
  // },
290
290
  /**
291
291
  * Gets executed just after a worker process has exited.
292
- * @param {String} cid capability id (e.g 0-0)
293
- * @param {Number} exitCode 0 - success, 1 - fail
294
- * @param {[type]} specs specs to be run in the worker process
295
- * @param {Number} retries number of retries used
292
+ * @param {string} cid capability id (e.g 0-0)
293
+ * @param {number} exitCode 0 - success, 1 - fail
294
+ * @param {object} specs specs to be run in the worker process
295
+ * @param {number} retries number of retries used
296
296
  */
297
297
  // onWorkerEnd: function (cid, exitCode, specs, retries) {
298
298
  // },
299
299
  /**
300
300
  * Gets executed just before initialising the webdriver session and test framework. It allows you
301
301
  * to manipulate configurations depending on the capability or spec.
302
- * @param {Object} config wdio configuration object
302
+ * @param {object} config wdio configuration object
303
303
  * @param {Array.<Object>} capabilities list of capabilities details
304
304
  * @param {Array.<String>} specs List of spec file paths that are to be run
305
- * @param {String} cid worker id (e.g. 0-0)
305
+ * @param {string} cid worker id (e.g. 0-0)
306
306
  */
307
307
  // beforeSession: function (config, capabilities, specs, cid) {
308
308
  // },
@@ -311,13 +311,13 @@ export const config: Options.Testrunner = {<%
311
311
  * variables like `browser`. It is the perfect place to define custom commands.
312
312
  * @param {Array.<Object>} capabilities list of capabilities details
313
313
  * @param {Array.<String>} specs List of spec file paths that are to be run
314
- * @param {Object} browser instance of created browser/device session
314
+ * @param {object} browser instance of created browser/device session
315
315
  */
316
316
  // before: function (capabilities, specs) {
317
317
  // },
318
318
  /**
319
319
  * Runs before a WebdriverIO command gets executed.
320
- * @param {String} commandName hook command name
320
+ * @param {string} commandName hook command name
321
321
  * @param {Array} args arguments that command would receive
322
322
  */
323
323
  // beforeCommand: function (commandName, args) {
@@ -325,7 +325,7 @@ export const config: Options.Testrunner = {<%
325
325
  if(answers.framework === 'mocha' || answers.framework === 'jasmine') { %>
326
326
  /**
327
327
  * Hook that gets executed before the suite starts
328
- * @param {Object} suite suite details
328
+ * @param {object} suite suite details
329
329
  */
330
330
  // beforeSuite: function (suite) {
331
331
  // },
@@ -349,7 +349,7 @@ export const config: Options.Testrunner = {<%
349
349
  <%- include('afterTest', { reporters: answers.reporters }) %>
350
350
  /**
351
351
  * Hook that gets executed after the suite has ended
352
- * @param {Object} suite suite details
352
+ * @param {object} suite suite details
353
353
  */
354
354
  // afterSuite: function (suite) {
355
355
  // },<% }
@@ -358,7 +358,7 @@ export const config: Options.Testrunner = {<%
358
358
  * Cucumber Hooks
359
359
  *
360
360
  * Runs before a Cucumber Feature.
361
- * @param {String} uri path to feature file
361
+ * @param {string} uri path to feature file
362
362
  * @param {GherkinDocument.IFeature} feature Cucumber feature object
363
363
  */
364
364
  // beforeFeature: function (uri, feature) {
@@ -367,7 +367,7 @@ export const config: Options.Testrunner = {<%
367
367
  *
368
368
  * Runs before a Cucumber Scenario.
369
369
  * @param {ITestCaseHookParameter} world world object containing information on pickle and test step
370
- * @param {Object} context Cucumber World object
370
+ * @param {object} context Cucumber World object
371
371
  */
372
372
  // beforeScenario: function (world, context) {
373
373
  // },
@@ -376,7 +376,7 @@ export const config: Options.Testrunner = {<%
376
376
  * Runs before a Cucumber Step.
377
377
  * @param {Pickle.IPickleStep} step step data
378
378
  * @param {IPickle} scenario scenario pickle
379
- * @param {Object} context Cucumber World object
379
+ * @param {object} context Cucumber World object
380
380
  */
381
381
  // beforeStep: function (step, scenario, context) {
382
382
  // },
@@ -385,11 +385,11 @@ export const config: Options.Testrunner = {<%
385
385
  * Runs after a Cucumber Step.
386
386
  * @param {Pickle.IPickleStep} step step data
387
387
  * @param {IPickle} scenario scenario pickle
388
- * @param {Object} result results object containing scenario results
388
+ * @param {object} result results object containing scenario results
389
389
  * @param {boolean} result.passed true if scenario has passed
390
390
  * @param {string} result.error error stack if scenario failed
391
391
  * @param {number} result.duration duration of scenario in milliseconds
392
- * @param {Object} context Cucumber World object
392
+ * @param {object} context Cucumber World object
393
393
  */
394
394
  // afterStep: function (step, scenario, result, context) {
395
395
  // },
@@ -397,18 +397,18 @@ export const config: Options.Testrunner = {<%
397
397
  *
398
398
  * Runs after a Cucumber Scenario.
399
399
  * @param {ITestCaseHookParameter} world world object containing information on pickle and test step
400
- * @param {Object} result results object containing scenario results
400
+ * @param {object} result results object containing scenario results
401
401
  * @param {boolean} result.passed true if scenario has passed
402
402
  * @param {string} result.error error stack if scenario failed
403
403
  * @param {number} result.duration duration of scenario in milliseconds
404
- * @param {Object} context Cucumber World object
404
+ * @param {object} context Cucumber World object
405
405
  */
406
406
  // afterScenario: function (world, result, context) {
407
407
  // },
408
408
  /**
409
409
  *
410
410
  * Runs after a Cucumber Feature.
411
- * @param {String} uri path to feature file
411
+ * @param {string} uri path to feature file
412
412
  * @param {GherkinDocument.IFeature} feature Cucumber feature object
413
413
  */
414
414
  // afterFeature: function (uri, feature) {
@@ -416,17 +416,17 @@ export const config: Options.Testrunner = {<%
416
416
  <% } %>
417
417
  /**
418
418
  * Runs after a WebdriverIO command gets executed
419
- * @param {String} commandName hook command name
419
+ * @param {string} commandName hook command name
420
420
  * @param {Array} args arguments that command would receive
421
- * @param {Number} result 0 - command success, 1 - command error
422
- * @param {Object} error error object if any
421
+ * @param {number} result 0 - command success, 1 - command error
422
+ * @param {object} error error object if any
423
423
  */
424
424
  // afterCommand: function (commandName, args, result, error) {
425
425
  // },
426
426
  /**
427
427
  * Gets executed after all tests are done. You still have access to all global variables from
428
428
  * the test.
429
- * @param {Number} result 0 - test pass, 1 - test fail
429
+ * @param {number} result 0 - test pass, 1 - test fail
430
430
  * @param {Array.<Object>} capabilities list of capabilities details
431
431
  * @param {Array.<String>} specs List of spec file paths that ran
432
432
  */
@@ -434,7 +434,7 @@ export const config: Options.Testrunner = {<%
434
434
  // },
435
435
  /**
436
436
  * Gets executed right after terminating the webdriver session.
437
- * @param {Object} config wdio configuration object
437
+ * @param {object} config wdio configuration object
438
438
  * @param {Array.<Object>} capabilities list of capabilities details
439
439
  * @param {Array.<String>} specs List of spec file paths that ran
440
440
  */
@@ -443,8 +443,8 @@ export const config: Options.Testrunner = {<%
443
443
  /**
444
444
  * Gets executed after all workers got shut down and the process is about to exit. An error
445
445
  * thrown in the onComplete hook will result in the test run failing.
446
- * @param {Object} exitCode 0 - success, 1 - fail
447
- * @param {Object} config wdio configuration object
446
+ * @param {object} exitCode 0 - success, 1 - fail
447
+ * @param {object} config wdio configuration object
448
448
  * @param {Array.<Object>} capabilities list of capabilities details
449
449
  * @param {<Object>} results object containing test results
450
450
  */
@@ -452,8 +452,8 @@ export const config: Options.Testrunner = {<%
452
452
  // },
453
453
  /**
454
454
  * Gets executed when a refresh happens.
455
- * @param {String} oldSessionId session ID of the old session
456
- * @param {String} newSessionId session ID of the new session
455
+ * @param {string} oldSessionId session ID of the old session
456
+ * @param {string} newSessionId session ID of the new session
457
457
  */
458
458
  // onReload: function(oldSessionId, newSessionId) {
459
459
  // }
package/build/utils.d.ts CHANGED
@@ -15,8 +15,8 @@ export declare function runServiceHook(launcher: Services.ServiceInstance[], hoo
15
15
  /**
16
16
  * Run hook in service launcher
17
17
  * @param {Array|Function} hook - can be array of functions or single function
18
- * @param {Object} config
19
- * @param {Object} capabilities
18
+ * @param {object} config
19
+ * @param {object} capabilities
20
20
  */
21
21
  export declare function runLauncherHook(hook: Function | Function[], ...args: any[]): Promise<void | any[]>;
22
22
  /**
package/build/utils.js CHANGED
@@ -62,8 +62,8 @@ export async function runServiceHook(launcher, hookName, ...args) {
62
62
  /**
63
63
  * Run hook in service launcher
64
64
  * @param {Array|Function} hook - can be array of functions or single function
65
- * @param {Object} config
66
- * @param {Object} capabilities
65
+ * @param {object} config
66
+ * @param {object} capabilities
67
67
  */
68
68
  export async function runLauncherHook(hook, ...args) {
69
69
  if (typeof hook === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "8.8.3",
3
+ "version": "8.8.6",
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",
@@ -46,12 +46,12 @@
46
46
  "typeScriptVersion": "3.8.3",
47
47
  "dependencies": {
48
48
  "@types/node": "^18.0.0",
49
- "@wdio/config": "8.8.0",
50
- "@wdio/globals": "8.8.2",
49
+ "@wdio/config": "8.8.6",
50
+ "@wdio/globals": "8.8.6",
51
51
  "@wdio/logger": "8.6.6",
52
52
  "@wdio/protocols": "8.8.1",
53
- "@wdio/types": "8.8.0",
54
- "@wdio/utils": "8.8.0",
53
+ "@wdio/types": "8.8.6",
54
+ "@wdio/utils": "8.8.6",
55
55
  "async-exit-hook": "^2.0.1",
56
56
  "chalk": "^5.0.1",
57
57
  "chokidar": "^3.5.3",
@@ -65,7 +65,7 @@
65
65
  "lodash.union": "^4.6.0",
66
66
  "read-pkg-up": "9.1.0",
67
67
  "recursive-readdir": "^2.2.2",
68
- "webdriverio": "8.8.2",
68
+ "webdriverio": "8.8.6",
69
69
  "yargs": "^17.5.1",
70
70
  "yarn-install": "^1.0.0"
71
71
  },
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "7adb7f61baef3aaf7d023165089eb8d087b81da4"
85
+ "gitHead": "0db3b2f595ef834e6e01f58873dbde776dc08240"
86
86
  }