@wdio/reporter 9.4.3 → 9.4.4
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/index.cjs +115 -197
- package/build/index.d.ts +19 -19
- package/build/index.d.ts.map +1 -1
- package/build/index.js +115 -197
- package/build/stats/test.d.ts +1 -1
- package/build/stats/test.d.ts.map +1 -1
- package/build/supportsColor.d.ts +0 -3
- package/build/supportsColor.d.ts.map +1 -1
- package/build/types.d.ts +3 -3
- package/build/types.d.ts.map +1 -1
- package/build/utils.d.ts +3 -3
- package/build/utils.d.ts.map +1 -1
- package/package.json +4 -4
package/build/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var import_node_events = require("node:events");
|
|
|
45
45
|
var import_node_process = __toESM(require("node:process"), 1);
|
|
46
46
|
var import_node_os = __toESM(require("node:os"), 1);
|
|
47
47
|
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
48
|
-
function hasFlag(flag, argv =
|
|
48
|
+
function hasFlag(flag, argv = import_node_process.default.argv) {
|
|
49
49
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
50
50
|
const position = argv.indexOf(prefix + flag);
|
|
51
51
|
const terminatorPosition = argv.indexOf("--");
|
|
@@ -499,83 +499,59 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
|
|
|
499
499
|
this.on("client:afterCommand", this.onAfterCommand.bind(this));
|
|
500
500
|
this.on("client:beforeAssertion", this.onBeforeAssertion.bind(this));
|
|
501
501
|
this.on("client:afterAssertion", this.onAfterAssertion.bind(this));
|
|
502
|
-
this.on(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
(runner)
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
this.on(
|
|
513
|
-
"suite:start",
|
|
514
|
-
/* istanbul ignore next */
|
|
515
|
-
(params) => {
|
|
516
|
-
if (!params.file) {
|
|
517
|
-
params.file = !params.parent ? this.specs.shift() || "unknown spec file" : this.currentSpec;
|
|
518
|
-
this.currentSpec = params.file;
|
|
519
|
-
}
|
|
520
|
-
const suite = new SuiteStats(params);
|
|
521
|
-
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
522
|
-
currentSuite.suites.push(suite);
|
|
523
|
-
this.currentSuites.push(suite);
|
|
524
|
-
this.suites[suite.uid] = suite;
|
|
525
|
-
this.onSuiteStart(suite);
|
|
502
|
+
this.on("runner:start", (runner) => {
|
|
503
|
+
rootSuite.cid = runner.cid;
|
|
504
|
+
this.specs.push(...runner.specs);
|
|
505
|
+
this.runnerStat = new RunnerStats(runner);
|
|
506
|
+
this.onRunnerStart(this.runnerStat);
|
|
507
|
+
});
|
|
508
|
+
this.on("suite:start", (params) => {
|
|
509
|
+
if (!params.file) {
|
|
510
|
+
params.file = !params.parent ? this.specs.shift() || "unknown spec file" : this.currentSpec;
|
|
511
|
+
this.currentSpec = params.file;
|
|
526
512
|
}
|
|
527
|
-
|
|
513
|
+
const suite = new SuiteStats(params);
|
|
514
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
515
|
+
currentSuite.suites.push(suite);
|
|
516
|
+
this.currentSuites.push(suite);
|
|
517
|
+
this.suites[suite.uid] = suite;
|
|
518
|
+
this.onSuiteStart(suite);
|
|
519
|
+
});
|
|
528
520
|
this.on("suite:retry", (suite) => {
|
|
529
521
|
const suiteStat = this.suites[suite.uid];
|
|
530
522
|
suiteStat.retry();
|
|
531
523
|
this.onSuiteRetry(suiteStat);
|
|
532
524
|
});
|
|
533
|
-
this.on(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
(
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
currentSuite.hooksAndTests.push(currentTest);
|
|
564
|
-
this.tests[test.uid] = currentTest;
|
|
565
|
-
this.onTestStart(currentTest);
|
|
566
|
-
}
|
|
567
|
-
);
|
|
568
|
-
this.on(
|
|
569
|
-
"test:pass",
|
|
570
|
-
/* istanbul ignore next */
|
|
571
|
-
(test) => {
|
|
572
|
-
const testStat = this.tests[test.uid];
|
|
573
|
-
testStat.pass();
|
|
574
|
-
this.counts.passes++;
|
|
575
|
-
this.counts.tests++;
|
|
576
|
-
this.onTestPass(testStat);
|
|
577
|
-
}
|
|
578
|
-
);
|
|
525
|
+
this.on("hook:start", (hook) => {
|
|
526
|
+
const hookStats = new HookStats(hook);
|
|
527
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
528
|
+
currentSuite.hooks.push(hookStats);
|
|
529
|
+
currentSuite.hooksAndTests.push(hookStats);
|
|
530
|
+
this.hooks[hook.uid] = hookStats;
|
|
531
|
+
this.onHookStart(hookStats);
|
|
532
|
+
});
|
|
533
|
+
this.on("hook:end", (hook) => {
|
|
534
|
+
const hookStats = this.hooks[hook.uid];
|
|
535
|
+
hookStats.complete(getErrorsFromEvent(hook));
|
|
536
|
+
this.counts.hooks++;
|
|
537
|
+
this.onHookEnd(hookStats);
|
|
538
|
+
});
|
|
539
|
+
this.on("test:start", (test) => {
|
|
540
|
+
test.retries = this.retries;
|
|
541
|
+
currentTest = new TestStats(test);
|
|
542
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
543
|
+
currentSuite.tests.push(currentTest);
|
|
544
|
+
currentSuite.hooksAndTests.push(currentTest);
|
|
545
|
+
this.tests[test.uid] = currentTest;
|
|
546
|
+
this.onTestStart(currentTest);
|
|
547
|
+
});
|
|
548
|
+
this.on("test:pass", (test) => {
|
|
549
|
+
const testStat = this.tests[test.uid];
|
|
550
|
+
testStat.pass();
|
|
551
|
+
this.counts.passes++;
|
|
552
|
+
this.counts.tests++;
|
|
553
|
+
this.onTestPass(testStat);
|
|
554
|
+
});
|
|
579
555
|
this.on("test:skip", (test) => {
|
|
580
556
|
const testStat = this.tests[test.uid];
|
|
581
557
|
currentTest.skip(test.pendingReason);
|
|
@@ -583,17 +559,13 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
|
|
|
583
559
|
this.counts.tests++;
|
|
584
560
|
this.onTestSkip(testStat);
|
|
585
561
|
});
|
|
586
|
-
this.on(
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
this.counts.tests++;
|
|
594
|
-
this.onTestFail(testStat);
|
|
595
|
-
}
|
|
596
|
-
);
|
|
562
|
+
this.on("test:fail", (test) => {
|
|
563
|
+
const testStat = this.tests[test.uid];
|
|
564
|
+
testStat.fail(getErrorsFromEvent(test));
|
|
565
|
+
this.counts.failures++;
|
|
566
|
+
this.counts.tests++;
|
|
567
|
+
this.onTestFail(testStat);
|
|
568
|
+
});
|
|
597
569
|
this.on("test:retry", (test) => {
|
|
598
570
|
const testStat = this.tests[test.uid];
|
|
599
571
|
testStat.fail(getErrorsFromEvent(test));
|
|
@@ -621,74 +593,54 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
|
|
|
621
593
|
this.counts.tests++;
|
|
622
594
|
this.onTestSkip(currentTest);
|
|
623
595
|
});
|
|
624
|
-
this.on(
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
(
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
596
|
+
this.on("test:end", (test) => {
|
|
597
|
+
const testStat = this.tests[test.uid];
|
|
598
|
+
this.retries = 0;
|
|
599
|
+
this.onTestEnd(testStat);
|
|
600
|
+
});
|
|
601
|
+
this.on("suite:end", (suite) => {
|
|
602
|
+
const suiteStat = this.suites[suite.uid];
|
|
603
|
+
suiteStat.complete();
|
|
604
|
+
this.currentSuites.pop();
|
|
605
|
+
this.onSuiteEnd(suiteStat);
|
|
606
|
+
});
|
|
607
|
+
this.on("runner:end", (runner) => {
|
|
608
|
+
rootSuite.complete();
|
|
609
|
+
if (this.runnerStat) {
|
|
610
|
+
this.runnerStat.failures = runner.failures;
|
|
611
|
+
this.runnerStat.retries = runner.retries;
|
|
612
|
+
this.runnerStat.complete();
|
|
613
|
+
this.onRunnerEnd(this.runnerStat);
|
|
631
614
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
/* istanbul ignore next */
|
|
636
|
-
(suite) => {
|
|
637
|
-
const suiteStat = this.suites[suite.uid];
|
|
638
|
-
suiteStat.complete();
|
|
639
|
-
this.currentSuites.pop();
|
|
640
|
-
this.onSuiteEnd(suiteStat);
|
|
615
|
+
const logFile = this.options.logFile;
|
|
616
|
+
if (!this.isContentPresent && logFile && import_node_fs.default.existsSync(logFile)) {
|
|
617
|
+
import_node_fs.default.unlinkSync(logFile);
|
|
641
618
|
}
|
|
642
|
-
);
|
|
643
|
-
this.on(
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
this.onRunnerEnd(this.runnerStat);
|
|
653
|
-
}
|
|
654
|
-
const logFile = this.options.logFile;
|
|
655
|
-
if (!this.isContentPresent && logFile && import_node_fs.default.existsSync(logFile)) {
|
|
656
|
-
import_node_fs.default.unlinkSync(logFile);
|
|
657
|
-
}
|
|
619
|
+
});
|
|
620
|
+
this.on("client:beforeCommand", (payload) => {
|
|
621
|
+
if (!currentTest) {
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
if (payload.body?.script) {
|
|
625
|
+
payload.body = {
|
|
626
|
+
...payload.body,
|
|
627
|
+
script: transformCommandScript(payload.body.script)
|
|
628
|
+
};
|
|
658
629
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
if (!currentTest) {
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
if (payload.body?.script) {
|
|
668
|
-
payload.body = {
|
|
669
|
-
...payload.body,
|
|
670
|
-
script: transformCommandScript(payload.body.script)
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
currentTest.output.push(Object.assign(payload, { type: "command" }));
|
|
630
|
+
currentTest.output.push(Object.assign(payload, { type: "command" }));
|
|
631
|
+
});
|
|
632
|
+
this.on("client:afterCommand", (payload) => {
|
|
633
|
+
if (!currentTest) {
|
|
634
|
+
return;
|
|
674
635
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
if (!currentTest) {
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
|
-
if (payload.body?.script) {
|
|
684
|
-
payload.body = {
|
|
685
|
-
...payload.body,
|
|
686
|
-
script: transformCommandScript(payload.body.script)
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
currentTest.output.push(Object.assign(payload, { type: "result" }));
|
|
636
|
+
if (payload.body?.script) {
|
|
637
|
+
payload.body = {
|
|
638
|
+
...payload.body,
|
|
639
|
+
script: transformCommandScript(payload.body.script)
|
|
640
|
+
};
|
|
690
641
|
}
|
|
691
|
-
|
|
642
|
+
currentTest.output.push(Object.assign(payload, { type: "result" }));
|
|
643
|
+
});
|
|
692
644
|
}
|
|
693
645
|
outputStream;
|
|
694
646
|
failures = 0;
|
|
@@ -725,73 +677,39 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
|
|
|
725
677
|
}
|
|
726
678
|
this.outputStream.write(content);
|
|
727
679
|
}
|
|
728
|
-
|
|
729
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
730
|
-
onRunnerStart(runnerStats) {
|
|
680
|
+
onRunnerStart(_runnerStats) {
|
|
731
681
|
}
|
|
732
|
-
|
|
733
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
734
|
-
onBeforeCommand(commandArgs) {
|
|
682
|
+
onBeforeCommand(_commandArgs) {
|
|
735
683
|
}
|
|
736
|
-
|
|
737
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
738
|
-
onAfterCommand(commandArgs) {
|
|
684
|
+
onAfterCommand(_commandArgs) {
|
|
739
685
|
}
|
|
740
|
-
|
|
741
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
742
|
-
onBeforeAssertion(assertionArgs) {
|
|
686
|
+
onBeforeAssertion(_assertionArgs) {
|
|
743
687
|
}
|
|
744
|
-
|
|
745
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
746
|
-
onAfterAssertion(assertionArgs) {
|
|
688
|
+
onAfterAssertion(_assertionArgs) {
|
|
747
689
|
}
|
|
748
|
-
|
|
749
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
750
|
-
onSuiteStart(suiteStats) {
|
|
690
|
+
onSuiteStart(_suiteStats) {
|
|
751
691
|
}
|
|
752
|
-
|
|
753
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
754
|
-
onHookStart(hookStat) {
|
|
692
|
+
onHookStart(_hookStat) {
|
|
755
693
|
}
|
|
756
|
-
|
|
757
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
758
|
-
onHookEnd(hookStats) {
|
|
694
|
+
onHookEnd(_hookStats) {
|
|
759
695
|
}
|
|
760
|
-
|
|
761
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
762
|
-
onTestStart(testStats) {
|
|
696
|
+
onTestStart(_testStats) {
|
|
763
697
|
}
|
|
764
|
-
|
|
765
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
766
|
-
onTestPass(testStats) {
|
|
698
|
+
onTestPass(_testStats) {
|
|
767
699
|
}
|
|
768
|
-
|
|
769
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
770
|
-
onTestFail(testStats) {
|
|
700
|
+
onTestFail(_testStats) {
|
|
771
701
|
}
|
|
772
|
-
|
|
773
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
774
|
-
onTestRetry(testStats) {
|
|
702
|
+
onTestRetry(_testStats) {
|
|
775
703
|
}
|
|
776
|
-
|
|
777
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
778
|
-
onTestSkip(testStats) {
|
|
704
|
+
onTestSkip(_testStats) {
|
|
779
705
|
}
|
|
780
|
-
|
|
781
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
782
|
-
onTestEnd(testStats) {
|
|
706
|
+
onTestEnd(_testStats) {
|
|
783
707
|
}
|
|
784
|
-
|
|
785
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
786
|
-
onSuiteRetry(suiteStats) {
|
|
708
|
+
onSuiteRetry(_suiteStats) {
|
|
787
709
|
}
|
|
788
|
-
|
|
789
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
790
|
-
onSuiteEnd(suiteStats) {
|
|
710
|
+
onSuiteEnd(_suiteStats) {
|
|
791
711
|
}
|
|
792
|
-
|
|
793
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
794
|
-
onRunnerEnd(runnerStats) {
|
|
712
|
+
onRunnerEnd(_runnerStats) {
|
|
795
713
|
}
|
|
796
714
|
};
|
|
797
715
|
// Annotate the CommonJS export names for ESM import in node:
|
package/build/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import TestStats, { type Test } from './stats/test.js';
|
|
|
7
7
|
import RunnerStats from './stats/runner.js';
|
|
8
8
|
import type { AfterCommandArgs, BeforeCommandArgs, CommandArgs, Tag, Argument } from './types.js';
|
|
9
9
|
type CustomWriteStream = {
|
|
10
|
-
write: (content:
|
|
10
|
+
write: (content: unknown) => boolean;
|
|
11
11
|
};
|
|
12
12
|
export default class WDIOReporter extends EventEmitter {
|
|
13
13
|
options: Partial<Reporters.Options>;
|
|
@@ -39,24 +39,24 @@ export default class WDIOReporter extends EventEmitter {
|
|
|
39
39
|
/**
|
|
40
40
|
* function to write to reporters output stream
|
|
41
41
|
*/
|
|
42
|
-
write(content:
|
|
43
|
-
onRunnerStart(
|
|
44
|
-
onBeforeCommand(
|
|
45
|
-
onAfterCommand(
|
|
46
|
-
onBeforeAssertion(
|
|
47
|
-
onAfterAssertion(
|
|
48
|
-
onSuiteStart(
|
|
49
|
-
onHookStart(
|
|
50
|
-
onHookEnd(
|
|
51
|
-
onTestStart(
|
|
52
|
-
onTestPass(
|
|
53
|
-
onTestFail(
|
|
54
|
-
onTestRetry(
|
|
55
|
-
onTestSkip(
|
|
56
|
-
onTestEnd(
|
|
57
|
-
onSuiteRetry(
|
|
58
|
-
onSuiteEnd(
|
|
59
|
-
onRunnerEnd(
|
|
42
|
+
write(content: unknown): void;
|
|
43
|
+
onRunnerStart(_runnerStats: RunnerStats): void;
|
|
44
|
+
onBeforeCommand(_commandArgs: BeforeCommandArgs): void;
|
|
45
|
+
onAfterCommand(_commandArgs: AfterCommandArgs): void;
|
|
46
|
+
onBeforeAssertion(_assertionArgs: unknown): void;
|
|
47
|
+
onAfterAssertion(_assertionArgs: unknown): void;
|
|
48
|
+
onSuiteStart(_suiteStats: SuiteStats): void;
|
|
49
|
+
onHookStart(_hookStat: HookStats): void;
|
|
50
|
+
onHookEnd(_hookStats: HookStats): void;
|
|
51
|
+
onTestStart(_testStats: TestStats): void;
|
|
52
|
+
onTestPass(_testStats: TestStats): void;
|
|
53
|
+
onTestFail(_testStats: TestStats): void;
|
|
54
|
+
onTestRetry(_testStats: TestStats): void;
|
|
55
|
+
onTestSkip(_testStats: TestStats): void;
|
|
56
|
+
onTestEnd(_testStats: TestStats): void;
|
|
57
|
+
onSuiteRetry(_suiteStats: SuiteStats): void;
|
|
58
|
+
onSuiteEnd(_suiteStats: SuiteStats): void;
|
|
59
|
+
onRunnerEnd(_runnerStats: RunnerStats): void;
|
|
60
60
|
}
|
|
61
61
|
export { SuiteStats, Tag, HookStats, TestStats, RunnerStats, BeforeCommandArgs, AfterCommandArgs, CommandArgs, Argument, Test };
|
|
62
62
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAIrD,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEjG,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAIrD,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,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UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,WAAW,CAAC,UAAU,EAAE,SAAS;IACjC,UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,SAAS,CAAC,UAAU,EAAE,SAAS;IAC/B,YAAY,CAAC,WAAW,EAAE,UAAU;IACpC,UAAU,CAAC,WAAW,EAAE,UAAU;IAClC,WAAW,CAAC,YAAY,EAAE,WAAW;CACxC;AAED,OAAO,EACH,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EACrE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAChD,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { EventEmitter } from "node:events";
|
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import tty from "node:tty";
|
|
9
|
-
function hasFlag(flag, argv =
|
|
9
|
+
function hasFlag(flag, argv = process.argv) {
|
|
10
10
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
11
11
|
const position = argv.indexOf(prefix + flag);
|
|
12
12
|
const terminatorPosition = argv.indexOf("--");
|
|
@@ -460,83 +460,59 @@ var WDIOReporter = class extends EventEmitter {
|
|
|
460
460
|
this.on("client:afterCommand", this.onAfterCommand.bind(this));
|
|
461
461
|
this.on("client:beforeAssertion", this.onBeforeAssertion.bind(this));
|
|
462
462
|
this.on("client:afterAssertion", this.onAfterAssertion.bind(this));
|
|
463
|
-
this.on(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
(runner)
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
this.on(
|
|
474
|
-
"suite:start",
|
|
475
|
-
/* istanbul ignore next */
|
|
476
|
-
(params) => {
|
|
477
|
-
if (!params.file) {
|
|
478
|
-
params.file = !params.parent ? this.specs.shift() || "unknown spec file" : this.currentSpec;
|
|
479
|
-
this.currentSpec = params.file;
|
|
480
|
-
}
|
|
481
|
-
const suite = new SuiteStats(params);
|
|
482
|
-
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
483
|
-
currentSuite.suites.push(suite);
|
|
484
|
-
this.currentSuites.push(suite);
|
|
485
|
-
this.suites[suite.uid] = suite;
|
|
486
|
-
this.onSuiteStart(suite);
|
|
463
|
+
this.on("runner:start", (runner) => {
|
|
464
|
+
rootSuite.cid = runner.cid;
|
|
465
|
+
this.specs.push(...runner.specs);
|
|
466
|
+
this.runnerStat = new RunnerStats(runner);
|
|
467
|
+
this.onRunnerStart(this.runnerStat);
|
|
468
|
+
});
|
|
469
|
+
this.on("suite:start", (params) => {
|
|
470
|
+
if (!params.file) {
|
|
471
|
+
params.file = !params.parent ? this.specs.shift() || "unknown spec file" : this.currentSpec;
|
|
472
|
+
this.currentSpec = params.file;
|
|
487
473
|
}
|
|
488
|
-
|
|
474
|
+
const suite = new SuiteStats(params);
|
|
475
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
476
|
+
currentSuite.suites.push(suite);
|
|
477
|
+
this.currentSuites.push(suite);
|
|
478
|
+
this.suites[suite.uid] = suite;
|
|
479
|
+
this.onSuiteStart(suite);
|
|
480
|
+
});
|
|
489
481
|
this.on("suite:retry", (suite) => {
|
|
490
482
|
const suiteStat = this.suites[suite.uid];
|
|
491
483
|
suiteStat.retry();
|
|
492
484
|
this.onSuiteRetry(suiteStat);
|
|
493
485
|
});
|
|
494
|
-
this.on(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
(
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
(
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
currentSuite.hooksAndTests.push(currentTest);
|
|
525
|
-
this.tests[test.uid] = currentTest;
|
|
526
|
-
this.onTestStart(currentTest);
|
|
527
|
-
}
|
|
528
|
-
);
|
|
529
|
-
this.on(
|
|
530
|
-
"test:pass",
|
|
531
|
-
/* istanbul ignore next */
|
|
532
|
-
(test) => {
|
|
533
|
-
const testStat = this.tests[test.uid];
|
|
534
|
-
testStat.pass();
|
|
535
|
-
this.counts.passes++;
|
|
536
|
-
this.counts.tests++;
|
|
537
|
-
this.onTestPass(testStat);
|
|
538
|
-
}
|
|
539
|
-
);
|
|
486
|
+
this.on("hook:start", (hook) => {
|
|
487
|
+
const hookStats = new HookStats(hook);
|
|
488
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
489
|
+
currentSuite.hooks.push(hookStats);
|
|
490
|
+
currentSuite.hooksAndTests.push(hookStats);
|
|
491
|
+
this.hooks[hook.uid] = hookStats;
|
|
492
|
+
this.onHookStart(hookStats);
|
|
493
|
+
});
|
|
494
|
+
this.on("hook:end", (hook) => {
|
|
495
|
+
const hookStats = this.hooks[hook.uid];
|
|
496
|
+
hookStats.complete(getErrorsFromEvent(hook));
|
|
497
|
+
this.counts.hooks++;
|
|
498
|
+
this.onHookEnd(hookStats);
|
|
499
|
+
});
|
|
500
|
+
this.on("test:start", (test) => {
|
|
501
|
+
test.retries = this.retries;
|
|
502
|
+
currentTest = new TestStats(test);
|
|
503
|
+
const currentSuite = this.currentSuites[this.currentSuites.length - 1];
|
|
504
|
+
currentSuite.tests.push(currentTest);
|
|
505
|
+
currentSuite.hooksAndTests.push(currentTest);
|
|
506
|
+
this.tests[test.uid] = currentTest;
|
|
507
|
+
this.onTestStart(currentTest);
|
|
508
|
+
});
|
|
509
|
+
this.on("test:pass", (test) => {
|
|
510
|
+
const testStat = this.tests[test.uid];
|
|
511
|
+
testStat.pass();
|
|
512
|
+
this.counts.passes++;
|
|
513
|
+
this.counts.tests++;
|
|
514
|
+
this.onTestPass(testStat);
|
|
515
|
+
});
|
|
540
516
|
this.on("test:skip", (test) => {
|
|
541
517
|
const testStat = this.tests[test.uid];
|
|
542
518
|
currentTest.skip(test.pendingReason);
|
|
@@ -544,17 +520,13 @@ var WDIOReporter = class extends EventEmitter {
|
|
|
544
520
|
this.counts.tests++;
|
|
545
521
|
this.onTestSkip(testStat);
|
|
546
522
|
});
|
|
547
|
-
this.on(
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
this.counts.tests++;
|
|
555
|
-
this.onTestFail(testStat);
|
|
556
|
-
}
|
|
557
|
-
);
|
|
523
|
+
this.on("test:fail", (test) => {
|
|
524
|
+
const testStat = this.tests[test.uid];
|
|
525
|
+
testStat.fail(getErrorsFromEvent(test));
|
|
526
|
+
this.counts.failures++;
|
|
527
|
+
this.counts.tests++;
|
|
528
|
+
this.onTestFail(testStat);
|
|
529
|
+
});
|
|
558
530
|
this.on("test:retry", (test) => {
|
|
559
531
|
const testStat = this.tests[test.uid];
|
|
560
532
|
testStat.fail(getErrorsFromEvent(test));
|
|
@@ -582,74 +554,54 @@ var WDIOReporter = class extends EventEmitter {
|
|
|
582
554
|
this.counts.tests++;
|
|
583
555
|
this.onTestSkip(currentTest);
|
|
584
556
|
});
|
|
585
|
-
this.on(
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
557
|
+
this.on("test:end", (test) => {
|
|
558
|
+
const testStat = this.tests[test.uid];
|
|
559
|
+
this.retries = 0;
|
|
560
|
+
this.onTestEnd(testStat);
|
|
561
|
+
});
|
|
562
|
+
this.on("suite:end", (suite) => {
|
|
563
|
+
const suiteStat = this.suites[suite.uid];
|
|
564
|
+
suiteStat.complete();
|
|
565
|
+
this.currentSuites.pop();
|
|
566
|
+
this.onSuiteEnd(suiteStat);
|
|
567
|
+
});
|
|
568
|
+
this.on("runner:end", (runner) => {
|
|
569
|
+
rootSuite.complete();
|
|
570
|
+
if (this.runnerStat) {
|
|
571
|
+
this.runnerStat.failures = runner.failures;
|
|
572
|
+
this.runnerStat.retries = runner.retries;
|
|
573
|
+
this.runnerStat.complete();
|
|
574
|
+
this.onRunnerEnd(this.runnerStat);
|
|
592
575
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
/* istanbul ignore next */
|
|
597
|
-
(suite) => {
|
|
598
|
-
const suiteStat = this.suites[suite.uid];
|
|
599
|
-
suiteStat.complete();
|
|
600
|
-
this.currentSuites.pop();
|
|
601
|
-
this.onSuiteEnd(suiteStat);
|
|
576
|
+
const logFile = this.options.logFile;
|
|
577
|
+
if (!this.isContentPresent && logFile && fs.existsSync(logFile)) {
|
|
578
|
+
fs.unlinkSync(logFile);
|
|
602
579
|
}
|
|
603
|
-
);
|
|
604
|
-
this.on(
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
this.onRunnerEnd(this.runnerStat);
|
|
614
|
-
}
|
|
615
|
-
const logFile = this.options.logFile;
|
|
616
|
-
if (!this.isContentPresent && logFile && fs.existsSync(logFile)) {
|
|
617
|
-
fs.unlinkSync(logFile);
|
|
618
|
-
}
|
|
580
|
+
});
|
|
581
|
+
this.on("client:beforeCommand", (payload) => {
|
|
582
|
+
if (!currentTest) {
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
if (payload.body?.script) {
|
|
586
|
+
payload.body = {
|
|
587
|
+
...payload.body,
|
|
588
|
+
script: transformCommandScript(payload.body.script)
|
|
589
|
+
};
|
|
619
590
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
if (!currentTest) {
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
if (payload.body?.script) {
|
|
629
|
-
payload.body = {
|
|
630
|
-
...payload.body,
|
|
631
|
-
script: transformCommandScript(payload.body.script)
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
currentTest.output.push(Object.assign(payload, { type: "command" }));
|
|
591
|
+
currentTest.output.push(Object.assign(payload, { type: "command" }));
|
|
592
|
+
});
|
|
593
|
+
this.on("client:afterCommand", (payload) => {
|
|
594
|
+
if (!currentTest) {
|
|
595
|
+
return;
|
|
635
596
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
if (!currentTest) {
|
|
642
|
-
return;
|
|
643
|
-
}
|
|
644
|
-
if (payload.body?.script) {
|
|
645
|
-
payload.body = {
|
|
646
|
-
...payload.body,
|
|
647
|
-
script: transformCommandScript(payload.body.script)
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
currentTest.output.push(Object.assign(payload, { type: "result" }));
|
|
597
|
+
if (payload.body?.script) {
|
|
598
|
+
payload.body = {
|
|
599
|
+
...payload.body,
|
|
600
|
+
script: transformCommandScript(payload.body.script)
|
|
601
|
+
};
|
|
651
602
|
}
|
|
652
|
-
|
|
603
|
+
currentTest.output.push(Object.assign(payload, { type: "result" }));
|
|
604
|
+
});
|
|
653
605
|
}
|
|
654
606
|
outputStream;
|
|
655
607
|
failures = 0;
|
|
@@ -686,73 +638,39 @@ var WDIOReporter = class extends EventEmitter {
|
|
|
686
638
|
}
|
|
687
639
|
this.outputStream.write(content);
|
|
688
640
|
}
|
|
689
|
-
|
|
690
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
691
|
-
onRunnerStart(runnerStats) {
|
|
641
|
+
onRunnerStart(_runnerStats) {
|
|
692
642
|
}
|
|
693
|
-
|
|
694
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
695
|
-
onBeforeCommand(commandArgs) {
|
|
643
|
+
onBeforeCommand(_commandArgs) {
|
|
696
644
|
}
|
|
697
|
-
|
|
698
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
699
|
-
onAfterCommand(commandArgs) {
|
|
645
|
+
onAfterCommand(_commandArgs) {
|
|
700
646
|
}
|
|
701
|
-
|
|
702
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
703
|
-
onBeforeAssertion(assertionArgs) {
|
|
647
|
+
onBeforeAssertion(_assertionArgs) {
|
|
704
648
|
}
|
|
705
|
-
|
|
706
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
707
|
-
onAfterAssertion(assertionArgs) {
|
|
649
|
+
onAfterAssertion(_assertionArgs) {
|
|
708
650
|
}
|
|
709
|
-
|
|
710
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
711
|
-
onSuiteStart(suiteStats) {
|
|
651
|
+
onSuiteStart(_suiteStats) {
|
|
712
652
|
}
|
|
713
|
-
|
|
714
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
715
|
-
onHookStart(hookStat) {
|
|
653
|
+
onHookStart(_hookStat) {
|
|
716
654
|
}
|
|
717
|
-
|
|
718
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
719
|
-
onHookEnd(hookStats) {
|
|
655
|
+
onHookEnd(_hookStats) {
|
|
720
656
|
}
|
|
721
|
-
|
|
722
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
723
|
-
onTestStart(testStats) {
|
|
657
|
+
onTestStart(_testStats) {
|
|
724
658
|
}
|
|
725
|
-
|
|
726
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
727
|
-
onTestPass(testStats) {
|
|
659
|
+
onTestPass(_testStats) {
|
|
728
660
|
}
|
|
729
|
-
|
|
730
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
731
|
-
onTestFail(testStats) {
|
|
661
|
+
onTestFail(_testStats) {
|
|
732
662
|
}
|
|
733
|
-
|
|
734
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
735
|
-
onTestRetry(testStats) {
|
|
663
|
+
onTestRetry(_testStats) {
|
|
736
664
|
}
|
|
737
|
-
|
|
738
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
739
|
-
onTestSkip(testStats) {
|
|
665
|
+
onTestSkip(_testStats) {
|
|
740
666
|
}
|
|
741
|
-
|
|
742
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
743
|
-
onTestEnd(testStats) {
|
|
667
|
+
onTestEnd(_testStats) {
|
|
744
668
|
}
|
|
745
|
-
|
|
746
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
747
|
-
onSuiteRetry(suiteStats) {
|
|
669
|
+
onSuiteRetry(_suiteStats) {
|
|
748
670
|
}
|
|
749
|
-
|
|
750
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
751
|
-
onSuiteEnd(suiteStats) {
|
|
671
|
+
onSuiteEnd(_suiteStats) {
|
|
752
672
|
}
|
|
753
|
-
|
|
754
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
755
|
-
onRunnerEnd(runnerStats) {
|
|
673
|
+
onRunnerEnd(_runnerStats) {
|
|
756
674
|
}
|
|
757
675
|
};
|
|
758
676
|
export {
|
package/build/stats/test.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/stats/test.ts"],"names":[],"mappings":"AAMA,OAAO,aAAa,MAAM,eAAe,CAAA;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAA;IACzG,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,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,KAAK,EAAE;IA2BrB,OAAO,CAAC,kBAAkB;CAmC7B"}
|
package/build/supportsColor.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportsColor.d.ts","sourceRoot":"","sources":["../src/supportsColor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"supportsColor.d.ts","sourceRoot":"","sources":["../src/supportsColor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAeH,UAAU,OAAO;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AA4JD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,OAAO,GAAE,OAAY;;;;;EAOrF;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;CAGlB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
package/build/types.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ export interface CommandArgs {
|
|
|
11
11
|
*/
|
|
12
12
|
retries?: number;
|
|
13
13
|
command?: string;
|
|
14
|
-
params?:
|
|
14
|
+
params?: unknown;
|
|
15
15
|
}
|
|
16
16
|
export interface BeforeCommandArgs extends CommandArgs {
|
|
17
|
-
body:
|
|
17
|
+
body: unknown;
|
|
18
18
|
}
|
|
19
19
|
export interface AfterCommandArgs extends CommandArgs {
|
|
20
|
-
result:
|
|
20
|
+
result: unknown;
|
|
21
21
|
/**
|
|
22
22
|
* custom commands also send along the command name
|
|
23
23
|
*/
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,IAAI,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACjD,MAAM,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,EAAE,CAAA;KAClB,EAAE,CAAA;CACN"}
|
package/build/utils.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare function sanitizeCaps(caps?: WebdriverIO.Capabilities): string;
|
|
|
19
19
|
* @param {*} e An event emitted by a framework adapter
|
|
20
20
|
*/
|
|
21
21
|
export declare function getErrorsFromEvent(e: {
|
|
22
|
-
errors?:
|
|
23
|
-
error?:
|
|
24
|
-
}):
|
|
22
|
+
errors?: Error[];
|
|
23
|
+
error?: Error;
|
|
24
|
+
}): Error[];
|
|
25
25
|
/**
|
|
26
26
|
* Pads the given `str` to `len`.
|
|
27
27
|
*
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAIvC;;;;GAIG;AACH,wBAAgB,cAAc,CAAE,GAAG,CAAC,EAAE,MAAM,UAU3C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAE,IAAI,CAAC,EAAE,WAAW,CAAC,YAAY,UA8B5D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAIvC;;;;GAIG;AACH,wBAAgB,cAAc,CAAE,GAAG,CAAC,EAAE,MAAM,UAU3C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAE,IAAI,CAAC,EAAE,WAAW,CAAC,YAAY,UA8B5D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,WAQxE;AAED;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAE5C;AAED,wBAAgB,KAAK,CAAE,IAAI,EAAE,MAAM,OAAO,MAAM,EAAE,OAAO,EAAE,MAAM,UAKhE;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,OAAO,MAAM,EAAE,GAAG,EAAE,MAAM,UAKjE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAE,MAAM,CAAC,EAAE,MAAM,GAAC,QAAQ,sBAoB/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/reporter",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.4",
|
|
4
4
|
"description": "A WebdriverIO utility to help reporting all events",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"typeScriptVersion": "3.8.3",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@types/node": "^20.1.0",
|
|
41
|
-
"@wdio/logger": "9.
|
|
42
|
-
"@wdio/types": "9.4.
|
|
41
|
+
"@wdio/logger": "9.4.4",
|
|
42
|
+
"@wdio/types": "9.4.4",
|
|
43
43
|
"diff": "^7.0.0",
|
|
44
44
|
"object-inspect": "^1.12.0"
|
|
45
45
|
},
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@types/tmp": "^0.2.3",
|
|
51
51
|
"tmp": "^0.2.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d327d86e07d16eaa0ecdf0656c1868ba73261393"
|
|
54
54
|
}
|