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
+28-4
Original file line number
Diff line number
Diff line change
@@ -620,8 +620,32 @@ not ok 64 - unfinished test with unhandledRejection
620
620
*
621
621
*
622
622
...
623
+
# Subtest: should print error cause
624
+
not ok 65 - should print error cause
625
+
---
626
+
duration_ms: *
627
+
failureType: 'testCodeFailure'
628
+
error: 'foo'
629
+
code: 'ERR_TEST_FAILURE'
630
+
stack: |-
631
+
*
632
+
*
633
+
*
634
+
*
635
+
*
636
+
*
637
+
*
638
+
*
639
+
*
640
+
*
641
+
*
642
+
*
643
+
*
644
+
*
645
+
*
646
+
...
623
647
# Subtest: invalid subtest fail
624
-
not ok 65 - invalid subtest fail
648
+
not ok 66 - invalid subtest fail
625
649
---
626
650
duration_ms: *
627
651
failureType: 'parentAlreadyFinished'
@@ -630,16 +654,16 @@ not ok 65 - invalid subtest fail
630
654
stack: |-
631
655
*
632
656
...
633
-
1..65
657
+
1..66
634
658
# 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.
635
659
# 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.
636
660
# 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.
637
661
# 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.
638
662
# 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.
639
663
# 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
+26-2
Original file line number
Diff line number
Diff line change
@@ -621,8 +621,32 @@ TAP version 13
621
621
*
622
622
*
623
623
...
624
+
# Subtest: should print error cause
625
+
not ok 65 - should print error cause
626
+
---
627
+
duration_ms: *
628
+
failureType: 'testCodeFailure'
629
+
error: 'foo'
630
+
code: 'ERR_TEST_FAILURE'
631
+
stack: |-
632
+
*
633
+
*
634
+
*
635
+
636
+
*
637
+
*
638
+
*
639
+
*
640
+
*
641
+
*
642
+
*
643
+
*
644
+
*
645
+
*
646
+
*
647
+
...
624
648
# Subtest: invalid subtest fail
625
-
not ok 65 - invalid subtest fail
649
+
not ok 66 - invalid subtest fail
626
650
---
627
651
duration_ms: *
628
652
failureType: 'parentAlreadyFinished'
@@ -631,7 +655,7 @@ TAP version 13
631
655
stack: |-
632
656
*
633
657
...
634
-
1..65
658
+
1..66
635
659
# 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.
636
660
# 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.
637
661
# 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.
Copy file name to clipboardexpand all lines: test/message/test_runner_output_spec_reporter.out
+19-2
Original file line number
Diff line number
Diff line change
@@ -262,6 +262,23 @@
262
262
*
263
263
*
264
264
265
+
should print error cause (*ms)
266
+
Error: foo
267
+
*
268
+
*
269
+
*
270
+
*
271
+
*
272
+
*
273
+
*
274
+
*
275
+
*
276
+
*
277
+
*
278
+
*
279
+
*
280
+
*
281
+
265
282
invalid subtest fail (*ms)
266
283
'test could not be started because its parent finished'
267
284
@@ -271,9 +288,9 @@
271
288
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.
272
289
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.
273
290
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