You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: test/message/test_runner_output.out
+114-4
Original file line number
Diff line number
Diff line change
@@ -624,8 +624,118 @@ not ok 64 - unfinished test with unhandledRejection
624
624
*
625
625
*
626
626
...
627
+
# Subtest: should print error cause
628
+
not ok 65 - should print error cause
629
+
---
630
+
duration_ms: *
631
+
failureType: 'testCodeFailure'
632
+
error: 'foo'
633
+
code: 'ERR_TEST_FAILURE'
634
+
stack: |-
635
+
*
636
+
*
637
+
*
638
+
*
639
+
[cause]: Error: bar
640
+
*
641
+
*
642
+
*
643
+
*
644
+
...
645
+
# Subtest: should print error cause for nested errors
646
+
not ok 66 - should print error cause for nested errors
647
+
---
648
+
duration_ms: *
649
+
failureType: 'testCodeFailure'
650
+
error: 'a'
651
+
code: 'ERR_TEST_FAILURE'
652
+
stack: |-
653
+
*
654
+
*
655
+
*
656
+
*
657
+
[cause]: Error: b
658
+
*
659
+
*
660
+
*
661
+
*
662
+
[cause]: Error: c
663
+
*
664
+
*
665
+
*
666
+
*
667
+
[cause]: [Error]
668
+
...
669
+
# Subtest: should handle cycles in error
670
+
not ok 67 - should handle cycles in error
671
+
---
672
+
duration_ms: *
673
+
failureType: 'testCodeFailure'
674
+
error: 'b'
675
+
code: 'ERR_TEST_FAILURE'
676
+
stack: |-
677
+
*
678
+
*
679
+
*
680
+
*
681
+
[cause]: Error: c
682
+
*
683
+
*
684
+
*
685
+
*
686
+
[cause]: Error: d
687
+
*
688
+
*
689
+
*
690
+
*
691
+
[cause]: [Circular *1]
692
+
...
693
+
# Subtest: should handle primitive, undefined and null cause
694
+
# Subtest: primitive cause
695
+
not ok 1 - primitive cause
696
+
---
697
+
duration_ms: *
698
+
failureType: 'testCodeFailure'
699
+
error: 'foo'
700
+
code: 'ERR_TEST_FAILURE'
701
+
stack: |-
702
+
*
703
+
*
704
+
*
705
+
*
706
+
[cause]: 'something went wrong'
707
+
...
708
+
# Subtest: undefined cause
709
+
not ok 2 - undefined cause
710
+
---
711
+
duration_ms: *
712
+
failureType: 'testCodeFailure'
713
+
error: 'foo'
714
+
code: 'ERR_TEST_FAILURE'
715
+
stack: |-
716
+
*
717
+
*
718
+
*
719
+
*
720
+
...
721
+
# Subtest: null cause
722
+
not ok 3 - null cause
723
+
---
724
+
duration_ms: *
725
+
failureType: 'cancelledByParent'
726
+
error: 'test did not finish before its parent and was cancelled'
727
+
code: 'ERR_TEST_FAILURE'
728
+
...
729
+
1..3
730
+
not ok 68 - should handle primitive, undefined and null cause
731
+
---
732
+
duration_ms: *
733
+
failureType: 'subtestsFailed'
734
+
error: '3 subtests failed'
735
+
code: 'ERR_TEST_FAILURE'
736
+
...
627
737
# Subtest: invalid subtest fail
628
-
not ok 65 - invalid subtest fail
738
+
not ok 69 - invalid subtest fail
629
739
---
630
740
duration_ms: *
631
741
failureType: 'parentAlreadyFinished'
@@ -634,17 +744,17 @@ not ok 65 - invalid subtest fail
634
744
stack: |-
635
745
*
636
746
...
637
-
1..65
747
+
1..69
638
748
# Warning: Test "unhandled rejection - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from unhandled rejection fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
639
749
# Warning: Test "async unhandled rejection - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from async unhandled rejection fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
640
750
# Warning: A resource generated asynchronous activity after the test ended. This activity created the error "Error: uncaught from outside of a test" which triggered an uncaughtException event, caught by the test runner.
641
751
# Warning: Test "immediate throw - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: thrown from immediate throw fail" and would have caused the test to fail, but instead triggered an uncaughtException event.
642
752
# Warning: Test "immediate reject - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from immediate reject fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
643
753
# Warning: Test "callback called twice in different ticks" generated asynchronous activity after the test ended. This activity created the error "Error [ERR_TEST_FAILURE]: callback invoked multiple times" and would have caused the test to fail, but instead triggered an uncaughtException event.
644
754
# Warning: Test "callback async throw after done" generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
Copy file name to clipboardexpand all lines: test/message/test_runner_output_cli.out
+114-4
Original file line number
Diff line number
Diff line change
@@ -624,8 +624,118 @@ not ok 64 - unfinished test with unhandledRejection
624
624
*
625
625
*
626
626
...
627
+
# Subtest: should print error cause
628
+
not ok 65 - should print error cause
629
+
---
630
+
duration_ms: *
631
+
failureType: 'testCodeFailure'
632
+
error: 'foo'
633
+
code: 'ERR_TEST_FAILURE'
634
+
stack: |-
635
+
*
636
+
*
637
+
*
638
+
*
639
+
[cause]: Error: bar
640
+
*
641
+
*
642
+
*
643
+
*
644
+
...
645
+
# Subtest: should print error cause for nested errors
646
+
not ok 66 - should print error cause for nested errors
647
+
---
648
+
duration_ms: *
649
+
failureType: 'testCodeFailure'
650
+
error: 'a'
651
+
code: 'ERR_TEST_FAILURE'
652
+
stack: |-
653
+
*
654
+
*
655
+
*
656
+
*
657
+
[cause]: Error: b
658
+
*
659
+
*
660
+
*
661
+
*
662
+
[cause]: Error: c
663
+
*
664
+
*
665
+
*
666
+
*
667
+
[cause]: [Error]
668
+
...
669
+
# Subtest: should handle cycles in error
670
+
not ok 67 - should handle cycles in error
671
+
---
672
+
duration_ms: *
673
+
failureType: 'testCodeFailure'
674
+
error: 'b'
675
+
code: 'ERR_TEST_FAILURE'
676
+
stack: |-
677
+
*
678
+
*
679
+
*
680
+
*
681
+
[cause]: Error: c
682
+
*
683
+
*
684
+
*
685
+
*
686
+
[cause]: Error: d
687
+
*
688
+
*
689
+
*
690
+
*
691
+
[cause]: [Circular *1]
692
+
...
693
+
# Subtest: should handle primitive, undefined and null cause
694
+
# Subtest: primitive cause
695
+
not ok 1 - primitive cause
696
+
---
697
+
duration_ms: *
698
+
failureType: 'testCodeFailure'
699
+
error: 'foo'
700
+
code: 'ERR_TEST_FAILURE'
701
+
stack: |-
702
+
*
703
+
*
704
+
*
705
+
*
706
+
[cause]: 'something went wrong'
707
+
...
708
+
# Subtest: undefined cause
709
+
not ok 2 - undefined cause
710
+
---
711
+
duration_ms: *
712
+
failureType: 'testCodeFailure'
713
+
error: 'foo'
714
+
code: 'ERR_TEST_FAILURE'
715
+
stack: |-
716
+
*
717
+
*
718
+
*
719
+
*
720
+
...
721
+
# Subtest: null cause
722
+
not ok 3 - null cause
723
+
---
724
+
duration_ms: *
725
+
failureType: 'cancelledByParent'
726
+
error: 'test did not finish before its parent and was cancelled'
727
+
code: 'ERR_TEST_FAILURE'
728
+
...
729
+
1..3
730
+
not ok 68 - should handle primitive, undefined and null cause
731
+
---
732
+
duration_ms: *
733
+
failureType: 'subtestsFailed'
734
+
error: '3 subtests failed'
735
+
code: 'ERR_TEST_FAILURE'
736
+
...
627
737
# Subtest: invalid subtest fail
628
-
not ok 65 - invalid subtest fail
738
+
not ok 69 - invalid subtest fail
629
739
---
630
740
duration_ms: *
631
741
failureType: 'parentAlreadyFinished'
@@ -641,10 +751,10 @@ not ok 65 - invalid subtest fail
641
751
# Warning: Test "immediate reject - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from immediate reject fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
642
752
# Warning: Test "callback called twice in different ticks" generated asynchronous activity after the test ended. This activity created the error "Error [ERR_TEST_FAILURE]: callback invoked multiple times" and would have caused the test to fail, but instead triggered an uncaughtException event.
643
753
# Warning: Test "callback async throw after done" generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
0 commit comments