@wdio/cli 8.13.14 → 8.14.1
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.
- package/build/commands/run.js +1 -1
- package/build/constants.d.ts +22 -94
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +11 -36
- package/build/utils.d.ts +0 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +1 -32
- package/package.json +9 -9
package/build/commands/run.js
CHANGED
|
@@ -161,7 +161,7 @@ export async function handler(argv) {
|
|
|
161
161
|
process.argv.find((arg) => arg.endsWith('ts-node/esm'))) ||
|
|
162
162
|
NODE_OPTIONS?.includes('ts-node/esm'));
|
|
163
163
|
if (isTSFile && !runsWithLoader && nodePath) {
|
|
164
|
-
NODE_OPTIONS += '
|
|
164
|
+
NODE_OPTIONS += ' --loader ts-node/esm/transpile-only --no-warnings';
|
|
165
165
|
const localTSConfigPath = ((params.autoCompileOpts?.tsNodeOpts?.project &&
|
|
166
166
|
path.resolve(process.cwd(), params.autoCompileOpts?.tsNodeOpts?.project)) ||
|
|
167
167
|
path.join(path.dirname(wdioConf.fullPath), 'tsconfig.json'));
|
package/build/constants.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { Questionnair } from './types.js';
|
|
2
2
|
export declare const pkg: any;
|
|
3
3
|
export declare const CLI_EPILOGUE: string;
|
|
4
|
-
export declare const EXCLUSIVE_SERVICES: {
|
|
5
|
-
'wdio-chromedriver-service': {
|
|
6
|
-
services: string[];
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
export declare const CONFIG_HELPER_INTRO = "\n===============================\n\uD83E\uDD16 WDIO Configuration Wizard \uD83E\uDDD9\n===============================\n";
|
|
11
5
|
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
6
|
export declare const DEPENDENCIES_INSTALLATION_MESSAGE = "\nTo install dependencies, execute:\n%s\n";
|
|
@@ -121,32 +115,17 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
121
115
|
readonly value: "@badisi/wdio-harness$--$harness";
|
|
122
116
|
}];
|
|
123
117
|
readonly service: readonly [{
|
|
124
|
-
readonly name: "
|
|
125
|
-
readonly value: "wdio-
|
|
126
|
-
}, {
|
|
127
|
-
readonly name: "geckodriver";
|
|
128
|
-
readonly value: "wdio-geckodriver-service$--$geckodriver";
|
|
129
|
-
}, {
|
|
130
|
-
readonly name: "safaridriver";
|
|
131
|
-
readonly value: "wdio-safaridriver-service$--$safaridriver";
|
|
118
|
+
readonly name: "vite";
|
|
119
|
+
readonly value: "wdio-vite-service$--$vite";
|
|
132
120
|
}, {
|
|
133
|
-
readonly name: "
|
|
134
|
-
readonly value: "wdio-
|
|
121
|
+
readonly name: "nuxt";
|
|
122
|
+
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
135
123
|
}, {
|
|
136
124
|
readonly name: "firefox-profile";
|
|
137
125
|
readonly value: "@wdio/firefox-profile-service$--$firefox-profile";
|
|
138
126
|
}, {
|
|
139
127
|
readonly name: "gmail";
|
|
140
128
|
readonly value: "@wdio/gmail-service$--$gmail";
|
|
141
|
-
}, {
|
|
142
|
-
readonly name: "vite";
|
|
143
|
-
readonly value: "wdio-vite-service$--$vite";
|
|
144
|
-
}, {
|
|
145
|
-
readonly name: "nuxt";
|
|
146
|
-
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
147
|
-
}, {
|
|
148
|
-
readonly name: "devtools";
|
|
149
|
-
readonly value: "@wdio/devtools-service$--$devtools";
|
|
150
129
|
}, {
|
|
151
130
|
readonly name: "sauce";
|
|
152
131
|
readonly value: "@wdio/sauce-service$--$sauce";
|
|
@@ -159,6 +138,9 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
159
138
|
}, {
|
|
160
139
|
readonly name: "browserstack";
|
|
161
140
|
readonly value: "@wdio/browserstack-service$--$browserstack";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "devtools";
|
|
143
|
+
readonly value: "@wdio/devtools-service$--$devtools";
|
|
162
144
|
}, {
|
|
163
145
|
readonly name: "vscode";
|
|
164
146
|
readonly value: "wdio-vscode-service$--$vscode";
|
|
@@ -168,9 +150,6 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
168
150
|
}, {
|
|
169
151
|
readonly name: "appium";
|
|
170
152
|
readonly value: "@wdio/appium-service$--$appium";
|
|
171
|
-
}, {
|
|
172
|
-
readonly name: "selenium-standalone";
|
|
173
|
-
readonly value: "@wdio/selenium-standalone-service$--$selenium-standalone";
|
|
174
153
|
}, {
|
|
175
154
|
readonly name: "eslinter-service";
|
|
176
155
|
readonly value: "wdio-eslinter-service$--$eslinter";
|
|
@@ -279,7 +258,6 @@ export declare const MOBILE_ENVIRONMENTS: {
|
|
|
279
258
|
export declare const BROWSER_ENVIRONMENTS: {
|
|
280
259
|
name: string;
|
|
281
260
|
value: string;
|
|
282
|
-
driver: string;
|
|
283
261
|
}[];
|
|
284
262
|
declare function isBrowserRunner(answers: Questionnair): boolean;
|
|
285
263
|
export declare const QUESTIONNAIRE: ({
|
|
@@ -304,7 +282,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
304
282
|
}];
|
|
305
283
|
when?: undefined;
|
|
306
284
|
default?: undefined;
|
|
307
|
-
validate?: undefined;
|
|
308
285
|
} | {
|
|
309
286
|
type: string;
|
|
310
287
|
name: string;
|
|
@@ -318,7 +295,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
318
295
|
})[];
|
|
319
296
|
when: typeof isBrowserRunner;
|
|
320
297
|
default?: undefined;
|
|
321
|
-
validate?: undefined;
|
|
322
298
|
} | {
|
|
323
299
|
type: string;
|
|
324
300
|
name: string;
|
|
@@ -326,7 +302,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
326
302
|
default: boolean;
|
|
327
303
|
when: (answers: Questionnair) => string | false | undefined;
|
|
328
304
|
choices?: undefined;
|
|
329
|
-
validate?: undefined;
|
|
330
305
|
} | {
|
|
331
306
|
type: string;
|
|
332
307
|
name: string;
|
|
@@ -334,7 +309,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
334
309
|
choices: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using BrowserStack", "In the cloud using Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
|
|
335
310
|
when: (answers: Questionnair) => boolean;
|
|
336
311
|
default?: undefined;
|
|
337
|
-
validate?: undefined;
|
|
338
312
|
} | {
|
|
339
313
|
type: string;
|
|
340
314
|
name: string;
|
|
@@ -345,7 +319,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
345
319
|
}[];
|
|
346
320
|
default: string;
|
|
347
321
|
when: (answers: Questionnair) => boolean;
|
|
348
|
-
validate?: undefined;
|
|
349
322
|
} | {
|
|
350
323
|
type: string;
|
|
351
324
|
name: string;
|
|
@@ -353,11 +326,9 @@ export declare const QUESTIONNAIRE: ({
|
|
|
353
326
|
choices: {
|
|
354
327
|
name: string;
|
|
355
328
|
value: string;
|
|
356
|
-
driver: string;
|
|
357
329
|
}[];
|
|
358
330
|
default: string[];
|
|
359
331
|
when: (answers: Questionnair) => boolean;
|
|
360
|
-
validate?: undefined;
|
|
361
332
|
} | {
|
|
362
333
|
type: string;
|
|
363
334
|
name: string;
|
|
@@ -365,7 +336,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
365
336
|
when: (answers: Questionnair) => boolean | undefined;
|
|
366
337
|
choices?: undefined;
|
|
367
338
|
default?: undefined;
|
|
368
|
-
validate?: undefined;
|
|
369
339
|
} | {
|
|
370
340
|
type: string;
|
|
371
341
|
name: string;
|
|
@@ -373,7 +343,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
373
343
|
default: string;
|
|
374
344
|
when: (answers: Questionnair) => boolean | undefined;
|
|
375
345
|
choices?: undefined;
|
|
376
|
-
validate?: undefined;
|
|
377
346
|
} | {
|
|
378
347
|
type: string;
|
|
379
348
|
name: string;
|
|
@@ -381,7 +350,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
381
350
|
default: string;
|
|
382
351
|
choices: readonly ["https", "http"];
|
|
383
352
|
when: (answers: Questionnair) => boolean;
|
|
384
|
-
validate?: undefined;
|
|
385
353
|
} | {
|
|
386
354
|
type: string;
|
|
387
355
|
name: string;
|
|
@@ -389,7 +357,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
389
357
|
choices: readonly ["us", "eu", "apac"];
|
|
390
358
|
when: (answers: Questionnair) => boolean;
|
|
391
359
|
default?: undefined;
|
|
392
|
-
validate?: undefined;
|
|
393
360
|
} | {
|
|
394
361
|
type: string;
|
|
395
362
|
name: string;
|
|
@@ -415,7 +382,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
415
382
|
})[];
|
|
416
383
|
when?: undefined;
|
|
417
384
|
default?: undefined;
|
|
418
|
-
validate?: undefined;
|
|
419
385
|
} | {
|
|
420
386
|
type: string;
|
|
421
387
|
name: string;
|
|
@@ -423,7 +389,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
423
389
|
choices: readonly ["Babel (https://babeljs.io/)", "TypeScript (https://www.typescriptlang.org/)", "No!"];
|
|
424
390
|
default: (answers: Questionnair) => Promise<"Babel (https://babeljs.io/)" | "TypeScript (https://www.typescriptlang.org/)" | "No!">;
|
|
425
391
|
when?: undefined;
|
|
426
|
-
validate?: undefined;
|
|
427
392
|
} | {
|
|
428
393
|
type: string;
|
|
429
394
|
name: string;
|
|
@@ -431,7 +396,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
431
396
|
default: boolean;
|
|
432
397
|
when: (answers: Questionnair) => boolean;
|
|
433
398
|
choices?: undefined;
|
|
434
|
-
validate?: undefined;
|
|
435
399
|
} | {
|
|
436
400
|
type: string;
|
|
437
401
|
name: string;
|
|
@@ -439,7 +403,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
439
403
|
default: (answers: Questionnair) => Promise<string>;
|
|
440
404
|
when: (answers: Questionnair) => false | RegExpMatchArray | null;
|
|
441
405
|
choices?: undefined;
|
|
442
|
-
validate?: undefined;
|
|
443
406
|
} | {
|
|
444
407
|
type: string;
|
|
445
408
|
name: string;
|
|
@@ -447,7 +410,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
447
410
|
default: (answers: Questionnair) => Promise<string>;
|
|
448
411
|
when: (answers: Questionnair) => boolean | undefined;
|
|
449
412
|
choices?: undefined;
|
|
450
|
-
validate?: undefined;
|
|
451
413
|
} | {
|
|
452
414
|
type: string;
|
|
453
415
|
name: string;
|
|
@@ -509,7 +471,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
509
471
|
}];
|
|
510
472
|
default: ("@wdio/spec-reporter$--$spec" | "@wdio/dot-reporter$--$dot" | "@wdio/junit-reporter$--$junit" | "@wdio/allure-reporter$--$allure" | "@wdio/sumologic-reporter$--$sumologic" | "@wdio/concise-reporter$--$concise" | "wdio-reportportal-reporter$--$reportportal" | "wdio-video-reporter$--$video" | "wdio-json-reporter$--$json" | "wdio-cucumberjs-json-reporter$--$cucumberjs-json" | "wdio-mochawesome-reporter$--$mochawesome" | "wdio-timeline-reporter$--$timeline" | "wdio-html-nice-reporter$--$html-nice" | "@moroo/wdio-slack-reporter$--$slack" | "wdio-teamcity-reporter$--$teamcity" | "@delta-reporter/wdio-delta-reporter-service" | "@wdio/testrail-reporter$--$testrail" | "wdio-light-reporter--$light")[];
|
|
511
473
|
when?: undefined;
|
|
512
|
-
validate?: undefined;
|
|
513
474
|
} | {
|
|
514
475
|
type: string;
|
|
515
476
|
name: string;
|
|
@@ -523,38 +484,22 @@ export declare const QUESTIONNAIRE: ({
|
|
|
523
484
|
}];
|
|
524
485
|
default: never[];
|
|
525
486
|
when?: undefined;
|
|
526
|
-
validate?: undefined;
|
|
527
487
|
} | {
|
|
528
488
|
type: string;
|
|
529
489
|
name: string;
|
|
530
490
|
message: string;
|
|
531
491
|
choices: (answers: Questionnair) => Promise<readonly [{
|
|
532
|
-
readonly name: "
|
|
533
|
-
readonly value: "wdio-
|
|
534
|
-
}, {
|
|
535
|
-
readonly name: "geckodriver";
|
|
536
|
-
readonly value: "wdio-geckodriver-service$--$geckodriver";
|
|
537
|
-
}, {
|
|
538
|
-
readonly name: "safaridriver";
|
|
539
|
-
readonly value: "wdio-safaridriver-service$--$safaridriver";
|
|
492
|
+
readonly name: "vite";
|
|
493
|
+
readonly value: "wdio-vite-service$--$vite";
|
|
540
494
|
}, {
|
|
541
|
-
readonly name: "
|
|
542
|
-
readonly value: "wdio-
|
|
495
|
+
readonly name: "nuxt";
|
|
496
|
+
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
543
497
|
}, {
|
|
544
498
|
readonly name: "firefox-profile";
|
|
545
499
|
readonly value: "@wdio/firefox-profile-service$--$firefox-profile";
|
|
546
500
|
}, {
|
|
547
501
|
readonly name: "gmail";
|
|
548
502
|
readonly value: "@wdio/gmail-service$--$gmail";
|
|
549
|
-
}, {
|
|
550
|
-
readonly name: "vite";
|
|
551
|
-
readonly value: "wdio-vite-service$--$vite";
|
|
552
|
-
}, {
|
|
553
|
-
readonly name: "nuxt";
|
|
554
|
-
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
555
|
-
}, {
|
|
556
|
-
readonly name: "devtools";
|
|
557
|
-
readonly value: "@wdio/devtools-service$--$devtools";
|
|
558
503
|
}, {
|
|
559
504
|
readonly name: "sauce";
|
|
560
505
|
readonly value: "@wdio/sauce-service$--$sauce";
|
|
@@ -567,6 +512,9 @@ export declare const QUESTIONNAIRE: ({
|
|
|
567
512
|
}, {
|
|
568
513
|
readonly name: "browserstack";
|
|
569
514
|
readonly value: "@wdio/browserstack-service$--$browserstack";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "devtools";
|
|
517
|
+
readonly value: "@wdio/devtools-service$--$devtools";
|
|
570
518
|
}, {
|
|
571
519
|
readonly name: "vscode";
|
|
572
520
|
readonly value: "wdio-vscode-service$--$vscode";
|
|
@@ -576,9 +524,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
576
524
|
}, {
|
|
577
525
|
readonly name: "appium";
|
|
578
526
|
readonly value: "@wdio/appium-service$--$appium";
|
|
579
|
-
}, {
|
|
580
|
-
readonly name: "selenium-standalone";
|
|
581
|
-
readonly value: "@wdio/selenium-standalone-service$--$selenium-standalone";
|
|
582
527
|
}, {
|
|
583
528
|
readonly name: "eslinter-service";
|
|
584
529
|
readonly value: "wdio-eslinter-service$--$eslinter";
|
|
@@ -667,32 +612,17 @@ export declare const QUESTIONNAIRE: ({
|
|
|
667
612
|
name: string;
|
|
668
613
|
value: string;
|
|
669
614
|
}[] | ({
|
|
670
|
-
readonly name: "
|
|
671
|
-
readonly value: "wdio-
|
|
672
|
-
} | {
|
|
673
|
-
readonly name: "geckodriver";
|
|
674
|
-
readonly value: "wdio-geckodriver-service$--$geckodriver";
|
|
675
|
-
} | {
|
|
676
|
-
readonly name: "safaridriver";
|
|
677
|
-
readonly value: "wdio-safaridriver-service$--$safaridriver";
|
|
615
|
+
readonly name: "vite";
|
|
616
|
+
readonly value: "wdio-vite-service$--$vite";
|
|
678
617
|
} | {
|
|
679
|
-
readonly name: "
|
|
680
|
-
readonly value: "wdio-
|
|
618
|
+
readonly name: "nuxt";
|
|
619
|
+
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
681
620
|
} | {
|
|
682
621
|
readonly name: "firefox-profile";
|
|
683
622
|
readonly value: "@wdio/firefox-profile-service$--$firefox-profile";
|
|
684
623
|
} | {
|
|
685
624
|
readonly name: "gmail";
|
|
686
625
|
readonly value: "@wdio/gmail-service$--$gmail";
|
|
687
|
-
} | {
|
|
688
|
-
readonly name: "vite";
|
|
689
|
-
readonly value: "wdio-vite-service$--$vite";
|
|
690
|
-
} | {
|
|
691
|
-
readonly name: "nuxt";
|
|
692
|
-
readonly value: "wdio-nuxt-service$--$nuxt";
|
|
693
|
-
} | {
|
|
694
|
-
readonly name: "devtools";
|
|
695
|
-
readonly value: "@wdio/devtools-service$--$devtools";
|
|
696
626
|
} | {
|
|
697
627
|
readonly name: "sauce";
|
|
698
628
|
readonly value: "@wdio/sauce-service$--$sauce";
|
|
@@ -705,6 +635,9 @@ export declare const QUESTIONNAIRE: ({
|
|
|
705
635
|
} | {
|
|
706
636
|
readonly name: "browserstack";
|
|
707
637
|
readonly value: "@wdio/browserstack-service$--$browserstack";
|
|
638
|
+
} | {
|
|
639
|
+
readonly name: "devtools";
|
|
640
|
+
readonly value: "@wdio/devtools-service$--$devtools";
|
|
708
641
|
} | {
|
|
709
642
|
readonly name: "vscode";
|
|
710
643
|
readonly value: "wdio-vscode-service$--$vscode";
|
|
@@ -714,9 +647,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
714
647
|
} | {
|
|
715
648
|
readonly name: "appium";
|
|
716
649
|
readonly value: "@wdio/appium-service$--$appium";
|
|
717
|
-
} | {
|
|
718
|
-
readonly name: "selenium-standalone";
|
|
719
|
-
readonly value: "@wdio/selenium-standalone-service$--$selenium-standalone";
|
|
720
650
|
} | {
|
|
721
651
|
readonly name: "eslinter-service";
|
|
722
652
|
readonly value: "wdio-eslinter-service$--$eslinter";
|
|
@@ -802,8 +732,7 @@ export declare const QUESTIONNAIRE: ({
|
|
|
802
732
|
readonly name: "robonut";
|
|
803
733
|
readonly value: "wdio-robonut-service$--$robonut";
|
|
804
734
|
} | undefined)[]>;
|
|
805
|
-
default: (answers: Questionnair) => Promise<("wdio-
|
|
806
|
-
validate: (answers: string[]) => string | Boolean;
|
|
735
|
+
default: (answers: Questionnair) => Promise<("wdio-vite-service$--$vite" | "wdio-nuxt-service$--$nuxt" | "@wdio/firefox-profile-service$--$firefox-profile" | "@wdio/gmail-service$--$gmail" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "@wdio/browserstack-service$--$browserstack" | "@wdio/devtools-service$--$devtools" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@wdio/appium-service$--$appium" | "wdio-eslinter-service$--$eslinter" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$ui5" | "wdio-wiremock-service$--$wiremock" | "wdio-ng-apimock-service$--ng-apimock" | "wdio-slack-service$--$slack" | "wdio-cucumber-viewport-logger-service$--$cucumber-viewport-logger" | "wdio-intercept-service$--$intercept" | "wdio-image-comparison-service$--$image-comparison" | "wdio-novus-visual-regression-service$--$novus-visual-regression" | "wdio-rerun-service$--$rerun" | "wdio-winappdriver-service$--$winappdriver" | "wdio-ywinappdriver-service$--$ywinappdriver" | "wdio-performancetotal-service$--$performancetotal" | "wdio-cleanuptotal-service$--$cleanuptotal" | "wdio-aws-device-farm-service$--$aws-device-farm" | "wdio-ocr-service$--$ocr-native-apps" | "wdio-ms-teams-service$--$ms-teams" | "wdio-tesults-service$--$tesults" | "@gmangiapelo/wdio-azure-devops-service$--$azure-devops" | "wdio-google-chat-service$--$google-chat" | "@sap_oss/wdio-qmate-service$--$qmate-service" | "wdio-vitaqai-service$--$vitaqai" | "wdio-robonut-service$--$robonut" | undefined)[]>;
|
|
807
736
|
when?: undefined;
|
|
808
737
|
} | {
|
|
809
738
|
type: string;
|
|
@@ -812,7 +741,6 @@ export declare const QUESTIONNAIRE: ({
|
|
|
812
741
|
default: boolean;
|
|
813
742
|
choices?: undefined;
|
|
814
743
|
when?: undefined;
|
|
815
|
-
validate?: undefined;
|
|
816
744
|
})[];
|
|
817
745
|
export {};
|
|
818
746
|
//# sourceMappingURL=constants.d.ts.map
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,GAAG,KAA6B,CAAA;AAE7C,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAKA,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,6BAA6B,ucAYzC,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,eAAO,MAAM,uBAAuB,iGAI1B,CAAA;AAEV,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFrB,CAAA;AAEV,eAAO,MAAM,gCAAgC;;;;;;IAQ5C,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM3D,CAAA;AA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
2
2
|
import path from 'node:path';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
-
import {
|
|
4
|
+
import { detectCompiler, getDefaultFiles, convertPackageHashToObject } from './utils.js';
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
6
|
export const pkg = require('../package.json');
|
|
7
7
|
export const CLI_EPILOGUE = `Documentation: https://webdriver.io\n@wdio/cli (v${pkg.version})`;
|
|
8
|
-
export const EXCLUSIVE_SERVICES = {
|
|
9
|
-
'wdio-chromedriver-service': {
|
|
10
|
-
services: ['@wdio/selenium-standalone-service'],
|
|
11
|
-
message: '@wdio/selenium-standalone-service already includes chromedriver'
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
8
|
export const CONFIG_HELPER_INTRO = `
|
|
15
9
|
===============================
|
|
16
10
|
🤖 WDIO Configuration Wizard 🧙
|
|
@@ -97,26 +91,19 @@ export const SUPPORTED_PACKAGES = {
|
|
|
97
91
|
{ name: 'angular-component-harnesses', value: '@badisi/wdio-harness$--$harness' }
|
|
98
92
|
],
|
|
99
93
|
service: [
|
|
100
|
-
//
|
|
101
|
-
// put chromedriver first as it is the default option
|
|
102
|
-
{ name: 'chromedriver', value: 'wdio-chromedriver-service$--$chromedriver' },
|
|
103
|
-
{ name: 'geckodriver', value: 'wdio-geckodriver-service$--$geckodriver' },
|
|
104
|
-
{ name: 'safaridriver', value: 'wdio-safaridriver-service$--$safaridriver' },
|
|
105
|
-
{ name: 'edgedriver', value: 'wdio-edgedriver-service$--$edgedriver' },
|
|
106
|
-
// internal
|
|
107
|
-
{ name: 'firefox-profile', value: '@wdio/firefox-profile-service$--$firefox-profile' },
|
|
108
|
-
{ name: 'gmail', value: '@wdio/gmail-service$--$gmail' },
|
|
94
|
+
// internal or community driver services
|
|
109
95
|
{ name: 'vite', value: 'wdio-vite-service$--$vite' },
|
|
110
96
|
{ name: 'nuxt', value: 'wdio-nuxt-service$--$nuxt' },
|
|
111
|
-
{ name: '
|
|
97
|
+
{ name: 'firefox-profile', value: '@wdio/firefox-profile-service$--$firefox-profile' },
|
|
98
|
+
{ name: 'gmail', value: '@wdio/gmail-service$--$gmail' },
|
|
112
99
|
{ name: 'sauce', value: '@wdio/sauce-service$--$sauce' },
|
|
113
100
|
{ name: 'testingbot', value: '@wdio/testingbot-service$--$testingbot' },
|
|
114
101
|
{ name: 'crossbrowsertesting', value: '@wdio/crossbrowsertesting-service$--$crossbrowsertesting' },
|
|
115
102
|
{ name: 'browserstack', value: '@wdio/browserstack-service$--$browserstack' },
|
|
103
|
+
{ name: 'devtools', value: '@wdio/devtools-service$--$devtools' },
|
|
116
104
|
{ name: 'vscode', value: 'wdio-vscode-service$--$vscode' },
|
|
117
105
|
{ name: 'electron', value: 'wdio-electron-service$--$electron' },
|
|
118
106
|
{ name: 'appium', value: '@wdio/appium-service$--$appium' },
|
|
119
|
-
{ name: 'selenium-standalone', value: '@wdio/selenium-standalone-service$--$selenium-standalone' },
|
|
120
107
|
// external
|
|
121
108
|
{ name: 'eslinter-service', value: 'wdio-eslinter-service$--$eslinter' },
|
|
122
109
|
{ name: 'lambdatest', value: 'wdio-lambdatest-service$--$lambdatest' },
|
|
@@ -190,10 +177,10 @@ export const MOBILE_ENVIRONMENTS = [
|
|
|
190
177
|
{ name: 'iOS - applications on iOS, iPadOS, and tvOS\n > using XCTest (https://appium.github.io/appium-xcuitest-driver)', value: 'ios' }
|
|
191
178
|
];
|
|
192
179
|
export const BROWSER_ENVIRONMENTS = [
|
|
193
|
-
{ name: 'Chrome', value: 'chrome'
|
|
194
|
-
{ name: 'Firefox', value: 'firefox'
|
|
195
|
-
{ name: 'Safari', value: 'safari'
|
|
196
|
-
{ name: 'Microsoft Edge', value: 'MicrosoftEdge'
|
|
180
|
+
{ name: 'Chrome', value: 'chrome' },
|
|
181
|
+
{ name: 'Firefox', value: 'firefox' },
|
|
182
|
+
{ name: 'Safari', value: 'safari' },
|
|
183
|
+
{ name: 'Microsoft Edge', value: 'MicrosoftEdge' }
|
|
197
184
|
];
|
|
198
185
|
function isBrowserRunner(answers) {
|
|
199
186
|
return answers.runner === SUPPORTED_PACKAGES.runner[1].value;
|
|
@@ -210,10 +197,6 @@ async function isNuxtProject() {
|
|
|
210
197
|
];
|
|
211
198
|
return (await Promise.all(pathOptions.map((o) => fs.access(o).then(() => true, () => false))).then((res) => res.filter(Boolean))).length > 0;
|
|
212
199
|
}
|
|
213
|
-
function getBrowserDriver(browserName) {
|
|
214
|
-
const driverName = BROWSER_ENVIRONMENTS.find((browser) => browser.value === browserName)?.driver;
|
|
215
|
-
return SUPPORTED_PACKAGES.service.find((svc) => svc.name === driverName)?.value;
|
|
216
|
-
}
|
|
217
200
|
function selectDefaultService(serviceNames) {
|
|
218
201
|
serviceNames = Array.isArray(serviceNames) ? serviceNames : [serviceNames];
|
|
219
202
|
return [SUPPORTED_PACKAGES.service.find(
|
|
@@ -515,13 +498,6 @@ export const QUESTIONNAIRE = [{
|
|
|
515
498
|
else if (answers.backend === BACKEND_CHOICES[2]) {
|
|
516
499
|
return selectDefaultService('sauce');
|
|
517
500
|
}
|
|
518
|
-
else if (answers.browserEnvironment && answers.browserEnvironment.length) {
|
|
519
|
-
const defaultServices = answers.browserEnvironment.map((browserName) => getBrowserDriver(browserName));
|
|
520
|
-
if (await isNuxtProject()) {
|
|
521
|
-
defaultServices.push(selectDefaultService('nuxt')[0]);
|
|
522
|
-
}
|
|
523
|
-
return defaultServices;
|
|
524
|
-
}
|
|
525
501
|
else if (answers.e2eEnvironment === 'mobile' || getTestingPurpose(answers) === 'macos') {
|
|
526
502
|
return selectDefaultService('appium');
|
|
527
503
|
}
|
|
@@ -531,9 +507,8 @@ export const QUESTIONNAIRE = [{
|
|
|
531
507
|
else if (getTestingPurpose(answers) === 'electron') {
|
|
532
508
|
return selectDefaultService('electron');
|
|
533
509
|
}
|
|
534
|
-
return
|
|
535
|
-
}
|
|
536
|
-
validate: /* istanbul ignore next */ (answers) => validateServiceAnswers(answers)
|
|
510
|
+
return [];
|
|
511
|
+
}
|
|
537
512
|
}, {
|
|
538
513
|
type: 'input',
|
|
539
514
|
name: 'outputDir',
|
package/build/utils.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export declare function addServiceDeps(names: SupportedPackage[], packages: stri
|
|
|
39
39
|
* @todo add JSComments
|
|
40
40
|
*/
|
|
41
41
|
export declare function convertPackageHashToObject(pkg: string, hash?: string): SupportedPackage;
|
|
42
|
-
export declare const validateServiceAnswers: (answers: string[]) => Boolean | string;
|
|
43
42
|
export declare function getCapabilities(arg: ReplCommandArguments): Promise<{
|
|
44
43
|
capabilities: {
|
|
45
44
|
deviceName: string;
|
package/build/utils.d.ts.map
CHANGED
|
@@ -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;AAetD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAGhD,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAMlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAQrI,eAAO,MAAM,UAAU,SAAuC,MAAM,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,QAAQ,MAAM,CAAC,CAAA;AAEnH,qBAAa,SAAU,SAAQ,kBAAkB;IACtC,MAAM,EAAE,MAAM,CAAA;gBACT,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAI9C;AAED;;GAEG;AACH,wBAAsB,cAAc,CAChC,QAAQ,EAAE,QAAQ,CAAC,eAAe,EAAE,EACpC,QAAQ,EAAE,MAAM,QAAQ,CAAC,aAAa,EACtC,GAAG,IAAI,EAAE,GAAG,EAAE,sBA2BjB;AAED;;;;;GAKG;AACH,wBAAs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,iBAgBlE;AAED,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,aAAa,oBAkBlE;AAED,wBAAsB,kBAAkB,CAAC,aAAa,EAAE,aAAa,4DAoBpE"}
|
package/build/utils.js
CHANGED
|
@@ -18,7 +18,7 @@ import { resolve } from 'import-meta-resolve';
|
|
|
18
18
|
import { SevereServiceError } from 'webdriverio';
|
|
19
19
|
import { ConfigParser } from '@wdio/config';
|
|
20
20
|
import { CAPABILITY_KEYS } from '@wdio/protocols';
|
|
21
|
-
import {
|
|
21
|
+
import { ANDROID_CONFIG, IOS_CONFIG, QUESTIONNAIRE, pkg, COMPILER_OPTIONS, TESTING_LIBRARY_PACKAGES, DEPENDENCIES_INSTALLATION_MESSAGE } from './constants.js';
|
|
22
22
|
const log = logger('@wdio/cli:utils');
|
|
23
23
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
24
24
|
const NPM_COMMAND = /^win/.test(process.platform) ? 'npm.cmd' : 'npm';
|
|
@@ -159,26 +159,6 @@ export function replaceConfig(config, type, name) {
|
|
|
159
159
|
return config.replace(text, buildNewConfigArray(text, type, name));
|
|
160
160
|
}
|
|
161
161
|
export function addServiceDeps(names, packages, update = false) {
|
|
162
|
-
/**
|
|
163
|
-
* Automatically install latest Chromedriver if `wdio-chromedriver-service` was selected for install.
|
|
164
|
-
* Also, set `DETECT_CHROMEDRIVER_VERSION` flag to have package install the right driver version.
|
|
165
|
-
*/
|
|
166
|
-
if (names.some(({ short }) => short === 'chromedriver')) {
|
|
167
|
-
process.env.DETECT_CHROMEDRIVER_VERSION = '1';
|
|
168
|
-
packages.push('chromedriver');
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* automatically install latest Geckodriver if `wdio-geckodriver-service` was selected for install
|
|
172
|
-
*/
|
|
173
|
-
if (names.some(({ short }) => short === 'geckodriver')) {
|
|
174
|
-
packages.push('geckodriver');
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* automatically install latest EdgeDriver if `wdio-edgedriver-service` was selected for install
|
|
178
|
-
*/
|
|
179
|
-
if (names.some(({ short }) => short === 'edgedriver')) {
|
|
180
|
-
packages.push('msedgedriver');
|
|
181
|
-
}
|
|
182
162
|
/**
|
|
183
163
|
* install Appium if it is not installed globally if `@wdio/appium-service`
|
|
184
164
|
* was selected for install
|
|
@@ -201,17 +181,6 @@ export function convertPackageHashToObject(pkg, hash = '$--$') {
|
|
|
201
181
|
const [p, short, purpose] = pkg.split(hash);
|
|
202
182
|
return { package: p, short, purpose };
|
|
203
183
|
}
|
|
204
|
-
export const validateServiceAnswers = (answers) => {
|
|
205
|
-
let result = true;
|
|
206
|
-
Object.entries(EXCLUSIVE_SERVICES).forEach(([name, { services, message }]) => {
|
|
207
|
-
const exists = answers.some(answer => answer.includes(name));
|
|
208
|
-
const hasExclusive = services.some(service => answers.some(answer => answer.includes(service)));
|
|
209
|
-
if (exists && hasExclusive) {
|
|
210
|
-
result = `${name} cannot work together with ${services.join(', ')}\n${message}\nPlease uncheck one of them.`;
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
return result;
|
|
214
|
-
};
|
|
215
184
|
export async function getCapabilities(arg) {
|
|
216
185
|
const optionalCapabilites = {
|
|
217
186
|
platformVersion: arg.platformVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.1",
|
|
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": "^20.1.1",
|
|
49
|
-
"@wdio/config": "8.
|
|
50
|
-
"@wdio/globals": "8.
|
|
49
|
+
"@wdio/config": "8.14.0",
|
|
50
|
+
"@wdio/globals": "8.14.1",
|
|
51
51
|
"@wdio/logger": "8.11.0",
|
|
52
52
|
"@wdio/protocols": "8.11.0",
|
|
53
|
-
"@wdio/types": "8.
|
|
54
|
-
"@wdio/utils": "8.
|
|
53
|
+
"@wdio/types": "8.14.0",
|
|
54
|
+
"@wdio/utils": "8.14.0",
|
|
55
55
|
"async-exit-hook": "^2.0.1",
|
|
56
56
|
"chalk": "^5.2.0",
|
|
57
57
|
"chokidar": "^3.5.3",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"ejs": "^3.1.9",
|
|
60
60
|
"execa": "^7.1.1",
|
|
61
61
|
"import-meta-resolve": "^3.0.0",
|
|
62
|
-
"inquirer": "9.2.
|
|
62
|
+
"inquirer": "9.2.9",
|
|
63
63
|
"lodash.flattendeep": "^4.4.0",
|
|
64
64
|
"lodash.pickby": "^4.6.0",
|
|
65
65
|
"lodash.union": "^4.6.0",
|
|
66
|
-
"read-pkg-up": "
|
|
66
|
+
"read-pkg-up": "10.0.0",
|
|
67
67
|
"recursive-readdir": "^2.2.3",
|
|
68
|
-
"webdriverio": "8.
|
|
68
|
+
"webdriverio": "8.14.1",
|
|
69
69
|
"yargs": "^17.7.2",
|
|
70
70
|
"yarn-install": "^1.0.0"
|
|
71
71
|
},
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "5599be9980b96adc82522f9e7cc53c61fb11c39c"
|
|
86
86
|
}
|