@wdio/cli 8.35.1 → 9.0.0-alpha.59

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,3 +1,5 @@
1
1
  {
2
- "type": "commonjs"
2
+ "name": "@wdio/cli-cjs",
3
+ "type": "commonjs",
4
+ "private": true
3
5
  }
@@ -5,98 +5,6 @@ export declare const desc = "Run WebDriver session in command line";
5
5
  export declare const cmdArgs: {
6
6
  [k in keyof ReplCommandArguments]?: Options;
7
7
  };
8
- export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, string | number> & import("yargs").InferredOptionTypes<import("lodash").Dictionary<Options | {
9
- readonly desc: "Run WebdriverIO in watch mode";
10
- readonly type: "boolean";
11
- } | {
12
- readonly alias: "h";
13
- readonly desc: "automation driver host address";
14
- readonly type: "string";
15
- } | {
16
- readonly alias: "p";
17
- readonly desc: "automation driver port";
18
- readonly type: "number";
19
- } | {
20
- readonly type: "string";
21
- readonly desc: "path to WebDriver endpoints (default \"/\")";
22
- } | {
23
- readonly alias: "u";
24
- readonly desc: "username if using a cloud service as automation backend";
25
- readonly type: "string";
26
- } | {
27
- readonly alias: "k";
28
- readonly desc: "corresponding access key to the user";
29
- readonly type: "string";
30
- } | {
31
- readonly alias: "l";
32
- readonly desc: "level of logging verbosity";
33
- readonly choices: readonly ["trace", "debug", "info", "warn", "error", "silent"];
34
- } | {
35
- readonly desc: "stop test runner after specific amount of tests have failed";
36
- readonly type: "number";
37
- } | {
38
- readonly desc: "shorten url command calls by setting a base url";
39
- readonly type: "string";
40
- } | {
41
- readonly alias: "w";
42
- readonly desc: "timeout for all waitForXXX commands";
43
- readonly type: "number";
44
- } | {
45
- readonly alias: "s";
46
- readonly desc: "update DOM, image or test snapshots";
47
- readonly type: "string";
48
- readonly coerce: (value: string) => string;
49
- } | {
50
- readonly alias: "f";
51
- readonly desc: "defines the framework (Mocha, Jasmine or Cucumber) to run the specs";
52
- readonly type: "string";
53
- } | {
54
- readonly alias: "r";
55
- readonly desc: "reporters to print out the results on stdout";
56
- readonly type: "array";
57
- } | {
58
- readonly desc: "overwrites the specs attribute and runs the defined suite";
59
- readonly type: "array";
60
- } | {
61
- readonly desc: "run only a certain spec file - overrides specs piped from stdin";
62
- readonly type: "array";
63
- } | {
64
- readonly desc: "exclude certain spec file from the test run - overrides exclude piped from stdin";
65
- readonly type: "array";
66
- } | {
67
- readonly desc: "Repeat specific specs and/or suites N times";
68
- readonly type: "number";
69
- } | {
70
- readonly desc: "Mocha options";
71
- readonly coerce: (opts: {
72
- [x: string]: string | number | boolean;
73
- }) => {
74
- [x: string]: string | number | boolean;
75
- };
76
- } | {
77
- readonly desc: "Jasmine options";
78
- readonly coerce: (opts: {
79
- [x: string]: string | number | boolean;
80
- }) => {
81
- [x: string]: string | number | boolean;
82
- };
83
- } | {
84
- readonly desc: "Cucumber options";
85
- readonly coerce: (opts: {
86
- [x: string]: string | number | boolean;
87
- }) => {
88
- [x: string]: string | number | boolean;
89
- };
90
- } | {
91
- readonly desc: "Auto compilation options";
92
- } | {
93
- readonly desc: "Enable coverage for browser runner";
94
- } | {
95
- readonly desc: "Shard tests and execute only the selected shard. Specify in the one-based form like `--shard x/y`, where x is the current and y the total shard.";
96
- readonly coerce: (shard: string) => {
97
- current: number;
98
- total: number;
99
- };
100
- }>>>;
8
+ export declare const builder: (yargs: Argv) => unknown;
101
9
  export declare const handler: (argv: ReplCommandArguments) => Promise<void>;
102
10
  //# sourceMappingURL=repl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOvD,eAAO,MAAM,OAAO,iCAAiC,CAAA;AACrD,eAAO,MAAM,IAAI,0CAA0C,CAAA;AAC3D,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,MAAM,oBAAoB,CAAC,CAAC,EAAE,OAAO;CAgBzD,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYlC,CAAA;AAED,eAAO,MAAM,OAAO,SAAgB,oBAAoB,kBAUvD,CAAA"}
1
+ {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOvD,eAAO,MAAM,OAAO,iCAAiC,CAAA;AACrD,eAAO,MAAM,IAAI,0CAA0C,CAAA;AAC3D,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,MAAM,oBAAoB,CAAC,CAAC,EAAE,OAAO;CAgBzD,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI,YAYlC,CAAA;AAED,eAAO,MAAM,OAAO,SAAgB,oBAAoB,kBAUvD,CAAA"}
@@ -77,7 +77,7 @@ export declare const cmdArgs: {
77
77
  readonly desc: "exclude certain spec file from the test run - overrides exclude piped from stdin";
78
78
  readonly type: "array";
79
79
  };
80
- readonly 'multi-run': {
80
+ readonly repeat: {
81
81
  readonly desc: "Repeat specific specs and/or suites N times";
82
82
  readonly type: "number";
83
83
  };
@@ -119,7 +119,7 @@ export declare const cmdArgs: {
119
119
  };
120
120
  };
121
121
  };
122
- export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "framework" | "reporters" | "hostname" | "port" | "path" | "updateSnapshots" | "logLevel" | "user" | "key" | "baseUrl" | "waitforTimeout" | "exclude" | "spec" | "bail" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "autoCompileOpts" | "coverage" | "suite" | "multi-run"> & import("yargs").InferredOptionTypes<{
122
+ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "framework" | "reporters" | "hostname" | "port" | "path" | "updateSnapshots" | "logLevel" | "user" | "key" | "baseUrl" | "waitforTimeout" | "exclude" | "spec" | "repeat" | "bail" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "autoCompileOpts" | "coverage" | "suite"> & import("yargs").InferredOptionTypes<{
123
123
  readonly watch: {
124
124
  readonly desc: "Run WebdriverIO in watch mode";
125
125
  readonly type: "boolean";
@@ -194,7 +194,7 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
194
194
  readonly desc: "exclude certain spec file from the test run - overrides exclude piped from stdin";
195
195
  readonly type: "array";
196
196
  };
197
- readonly 'multi-run': {
197
+ readonly repeat: {
198
198
  readonly desc: "Repeat specific specs and/or suites N times";
199
199
  readonly type: "number";
200
200
  };
@@ -98,7 +98,7 @@ export const cmdArgs = {
98
98
  desc: 'exclude certain spec file from the test run - overrides exclude piped from stdin',
99
99
  type: 'array'
100
100
  },
101
- 'multi-run': {
101
+ 'repeat': {
102
102
  desc: 'Repeat specific specs and/or suites N times',
103
103
  type: 'number'
104
104
  },
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAqC,MAAM,aAAa,CAAA;AAS7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,GAAG,KAA6B,CAAA;AAE7C,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,mBAAmB,8HAI/B,CAAA;AAED,eAAO,MAAM,GAAG,yCAA0C,CAAA;AAC1D,eAAO,MAAM,+BAA+B,UAA2C,CAAA;AACvF,eAAO,MAAM,0BAA0B;oBAAqE,MAAM;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BASe,YAAY;;;;;;uBAmBZ,YAAY;oBAIf,YAAY;;;;;;uBAuCT,YAAY;oBAKf,YAAY;;;;;;;;;;;;;;;;uBA0CpC,YAAY;;;;uBAuBZ,YAAY;;;;;;;;;IA8CjC,CAAA;AAGF,eAAO,MAAM,kCAAkC,UAM9C,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CA+StE,CAAA;AAED,eAAO,MAAM,yBAAyB;sBAChB,MAAM;yBACH,MAAM;CAC9B,CAAA"}
@@ -106,7 +106,6 @@ export const SUPPORTED_PACKAGES = {
106
106
  { name: 'gmail', value: 'wdio-gmail-service$--$gmail' },
107
107
  { name: 'sauce', value: '@wdio/sauce-service$--$sauce' },
108
108
  { name: 'testingbot', value: '@wdio/testingbot-service$--$testingbot' },
109
- { name: 'crossbrowsertesting', value: '@wdio/crossbrowsertesting-service$--$crossbrowsertesting' },
110
109
  { name: 'browserstack', value: '@wdio/browserstack-service$--$browserstack' },
111
110
  { name: 'devtools', value: '@wdio/devtools-service$--$devtools' },
112
111
  { name: 'vscode', value: 'wdio-vscode-service$--$vscode' },
@@ -40,7 +40,7 @@ capabilities: [{<%
40
40
  } else if (answers.purpose === 'electron') { %>
41
41
  browserName: 'electron',
42
42
  // Electron service options
43
- // see https://webdriver.io/docs/wdio-electron-service/#configuration
43
+ // see https://webdriver.io/docs/desktop-testing/electron/configuration/#service-options
44
44
  'wdio:electronServiceOptions': {<%
45
45
  if (answers.electronAppBinaryPath) { %>
46
46
  // custom path to app binary
package/build/utils.js CHANGED
@@ -526,7 +526,7 @@ export function specifyVersionIfNeeded(packagesToInstall, version, npmTag) {
526
526
  const [major, minor, patch, tagName, build] = (value || []).slice(1, -1); // drop commit bit
527
527
  return packagesToInstall.map((p) => {
528
528
  if ((p.startsWith('@wdio') && p !== '@wdio/visual-service') ||
529
- ['devtools', 'webdriver', 'webdriverio'].includes(p)) {
529
+ ['webdriver', 'webdriverio'].includes(p)) {
530
530
  const tag = major && npmTag === 'latest'
531
531
  ? `^${major}.${minor}.${patch}-${tagName}.${build}`
532
532
  : npmTag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "8.35.1",
3
+ "version": "9.0.0-alpha.59+259e4a29f",
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",
@@ -9,7 +9,7 @@
9
9
  "wdio": "./bin/wdio.js"
10
10
  },
11
11
  "engines": {
12
- "node": "^16.13 || >=18"
12
+ "node": ">=18"
13
13
  },
14
14
  "scripts": {
15
15
  "copy": "copyfiles -u 1 -V \"src/templates/**/*\" ./build/"
@@ -47,12 +47,12 @@
47
47
  "dependencies": {
48
48
  "@types/node": "^20.1.1",
49
49
  "@vitest/snapshot": "^1.2.1",
50
- "@wdio/config": "8.35.0",
51
- "@wdio/globals": "8.35.1",
52
- "@wdio/logger": "8.28.0",
53
- "@wdio/protocols": "8.32.0",
54
- "@wdio/types": "8.32.4",
55
- "@wdio/utils": "8.35.0",
50
+ "@wdio/config": "9.0.0-alpha.59+259e4a29f",
51
+ "@wdio/globals": "9.0.0-alpha.59+259e4a29f",
52
+ "@wdio/logger": "9.0.0-alpha.59+259e4a29f",
53
+ "@wdio/protocols": "9.0.0-alpha.59+259e4a29f",
54
+ "@wdio/types": "9.0.0-alpha.59+259e4a29f",
55
+ "@wdio/utils": "9.0.0-alpha.59+259e4a29f",
56
56
  "async-exit-hook": "^2.0.1",
57
57
  "chalk": "^5.2.0",
58
58
  "chokidar": "^3.5.3",
@@ -61,13 +61,13 @@
61
61
  "ejs": "^3.1.9",
62
62
  "execa": "^8.0.1",
63
63
  "import-meta-resolve": "^4.0.0",
64
- "inquirer": "9.2.12",
64
+ "inquirer": "9.2.15",
65
65
  "lodash.flattendeep": "^4.4.0",
66
66
  "lodash.pickby": "^4.6.0",
67
67
  "lodash.union": "^4.6.0",
68
- "read-pkg-up": "10.0.0",
68
+ "read-pkg-up": "^10.0.0",
69
69
  "recursive-readdir": "^2.2.3",
70
- "webdriverio": "8.35.1",
70
+ "webdriverio": "9.0.0-alpha.59+259e4a29f",
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": "7ac0ca2f7ac53ecc45e0a7c77ddc117a40fdda3d"
86
+ "gitHead": "259e4a29f28745e0af3ca6ca3140c8cf491e3771"
87
87
  }