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
+142-5
Original file line number
Diff line number
Diff line change
@@ -624,8 +624,145 @@ 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
+
[cause]: undefined
721
+
...
722
+
# Subtest: null cause
723
+
not ok 3 - null cause
724
+
---
725
+
duration_ms: *
726
+
failureType: 'cancelledByParent'
727
+
error: 'test did not finish before its parent and was cancelled'
728
+
code: 'ERR_TEST_FAILURE'
729
+
...
730
+
1..3
731
+
not ok 68 - should handle primitive, undefined and null cause
732
+
---
733
+
duration_ms: *
734
+
failureType: 'subtestsFailed'
735
+
error: '3 subtests failed'
736
+
code: 'ERR_TEST_FAILURE'
737
+
...
738
+
# Subtest: should handle case when cause throw
739
+
not ok 69 - should handle case when cause throw
740
+
---
741
+
duration_ms: *
742
+
failureType: 'testCodeFailure'
743
+
error: ''
744
+
code: 'ERR_TEST_FAILURE'
745
+
stack: |-
746
+
*
747
+
*
748
+
*
749
+
*
750
+
...
751
+
# Subtest: should handle case when stack throw
752
+
not ok 70 - should handle case when stack throw
753
+
---
754
+
duration_ms: *
755
+
failureType: 'testCodeFailure'
756
+
error: ''
757
+
code: 'ERR_TEST_FAILURE'
758
+
stack: |-
759
+
*
760
+
*
761
+
*
762
+
*
763
+
...
627
764
# Subtest: invalid subtest fail
628
-
not ok 65 - invalid subtest fail
765
+
not ok 71 - invalid subtest fail
629
766
---
630
767
duration_ms: *
631
768
failureType: 'parentAlreadyFinished'
@@ -634,19 +771,19 @@ not ok 65 - invalid subtest fail
634
771
stack: |-
635
772
*
636
773
...
637
-
1..65
774
+
1..71
638
775
# 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
776
# 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
777
# 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
778
# 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
779
# 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
780
# 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
781
# 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