@wdio/cli 7.20.9 → 7.21.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;GAKnB,CAAA;AA4MD,wBAAgB,OAAO,CAAC,IAAI,EAAE,sBAAsB;;;;;;;;GAEnD;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,YAAY;;;;;;;;EAAY;;;;;;;;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;GAKnB,CAAA;AA4MD,wBAAgB,OAAO,CAAC,IAAI,EAAE,sBAAsB;;;;;;;;GAEnD;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,YAAY;;;;;;;;EAAY;;;;;;;;GA4B3H"}
|
package/build/commands/config.js
CHANGED
|
@@ -215,11 +215,14 @@ exports.handler = handler;
|
|
|
215
215
|
* @param {Function} runConfigCmd runConfig method to be replaceable for unit testing
|
|
216
216
|
*/
|
|
217
217
|
async function missingConfigurationPrompt(command, message, useYarn = false, runConfigCmd = runConfig) {
|
|
218
|
+
const configMessage = command === 'run'
|
|
219
|
+
? `Error: Could not execute "run" due to missing configuration, file "${message}" not found! Would you like to create one?`
|
|
220
|
+
: `Error: Could not execute "${command}" due to missing configuration. Would you like to create one?`;
|
|
218
221
|
const { config } = await inquirer_1.default.prompt([
|
|
219
222
|
{
|
|
220
223
|
type: 'confirm',
|
|
221
224
|
name: 'config',
|
|
222
|
-
message:
|
|
225
|
+
message: configMessage,
|
|
223
226
|
default: false
|
|
224
227
|
}
|
|
225
228
|
]);
|
|
@@ -228,7 +231,9 @@ async function missingConfigurationPrompt(command, message, useYarn = false, run
|
|
|
228
231
|
*/
|
|
229
232
|
if (!config && !process.env.JEST_WORKER_ID) {
|
|
230
233
|
/* istanbul ignore next */
|
|
231
|
-
console.log(
|
|
234
|
+
console.log(command === 'run'
|
|
235
|
+
? `No WebdriverIO configuration found in "${process.cwd()}"`
|
|
236
|
+
: message);
|
|
232
237
|
/* istanbul ignore next */
|
|
233
238
|
return process.exit(0);
|
|
234
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAK9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUnB,CAAA;AAED,wBAAgB,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAc1F;AAED,wBAAgB,MAAM,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBjF;AAED,wBAAsB,OAAO,CAAE,IAAI,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAK9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUnB,CAAA;AAED,wBAAgB,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAc1F;AAED,wBAAgB,MAAM,CAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBjF;AAED,wBAAsB,OAAO,CAAE,IAAI,EAAE,mBAAmB,iBAmCvD"}
|
package/build/commands/run.js
CHANGED
|
@@ -142,7 +142,8 @@ exports.launch = launch;
|
|
|
142
142
|
async function handler(argv) {
|
|
143
143
|
const { configPath, ...params } = argv;
|
|
144
144
|
if (!fs_extra_1.default.existsSync(configPath)) {
|
|
145
|
-
|
|
145
|
+
const configFullPath = path_1.default.join(process.cwd(), configPath);
|
|
146
|
+
await (0, config_1.missingConfigurationPrompt)('run', configFullPath);
|
|
146
147
|
}
|
|
147
148
|
const localConf = path_1.default.join(process.cwd(), 'wdio.conf.js');
|
|
148
149
|
const wdioConf = configPath || (fs_extra_1.default.existsSync(localConf) ? localConf : undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.21.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",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@types/lodash.union": "^4.6.6",
|
|
38
38
|
"@types/node": "^18.0.0",
|
|
39
39
|
"@types/recursive-readdir": "^2.2.0",
|
|
40
|
-
"@wdio/config": "7.
|
|
40
|
+
"@wdio/config": "7.21.0",
|
|
41
41
|
"@wdio/logger": "7.19.0",
|
|
42
42
|
"@wdio/protocols": "7.20.6",
|
|
43
|
-
"@wdio/types": "7.
|
|
44
|
-
"@wdio/utils": "7.
|
|
43
|
+
"@wdio/types": "7.21.0",
|
|
44
|
+
"@wdio/utils": "7.21.0",
|
|
45
45
|
"async-exit-hook": "^2.0.1",
|
|
46
46
|
"chalk": "^4.0.0",
|
|
47
47
|
"chokidar": "^3.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lodash.union": "^4.6.0",
|
|
55
55
|
"mkdirp": "^1.0.4",
|
|
56
56
|
"recursive-readdir": "^2.2.2",
|
|
57
|
-
"webdriverio": "7.
|
|
57
|
+
"webdriverio": "7.21.0",
|
|
58
58
|
"yargs": "^17.0.0",
|
|
59
59
|
"yarn-install": "^1.0.0"
|
|
60
60
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"types": "./build/index.d.ts",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "808149cc5875529a2c0b3592dc5e255796e8ece4"
|
|
66
66
|
}
|