| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 59c07a9 commit b85a11c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -319,3 +319,12 @@ test('custom inspect symbol that throws fail', () => { | |||
| 319 | 319 | ||
| 320 | 320 | throw obj; | |
| 321 | 321 | }); | |
| 322 | + | ||
| 323 | + test('subtest sync throw fails', async (t) => { | ||
| 324 | + await t.test('sync throw fails at first', (t) => { | ||
| 325 | + throw new Error('thrown from subtest sync throw fails at first'); | ||
| 326 | + }); | ||
| 327 | + await t.test('sync throw fails at second', (t) => { | ||
| 328 | + throw new Error('thrown from subtest sync throw fails at second'); | ||
| 329 | + }); | ||
| 330 | + }); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -448,7 +448,51 @@ not ok 55 - custom inspect symbol that throws fail | |||
| 448 | 448 | } | |
| 449 | 449 | code: 'ERR_TEST_FAILURE' | |
| 450 | 450 | ... | |
| 451 | - not ok 56 - invalid subtest fail | ||
| 451 | + not ok 1 - sync throw fails at first | ||
| 452 | + --- | ||
| 453 | + duration_ms: * | ||
| 454 | + failureType: 'testCodeFailure' | ||
| 455 | + error: 'thrown from subtest sync throw fails at first' | ||
| 456 | + code: 'ERR_TEST_FAILURE' | ||
| 457 | + stack: |- | ||
| 458 | + * | ||
| 459 | + * | ||
| 460 | + * | ||
| 461 | + * | ||
| 462 | + * | ||
| 463 | + * | ||
| 464 | + * | ||
| 465 | + * | ||
| 466 | + * | ||
| 467 | + * | ||
| 468 | + ... | ||
| 469 | + not ok 2 - sync throw fails at second | ||
| 470 | + --- | ||
| 471 | + duration_ms: * | ||
| 472 | + failureType: 'testCodeFailure' | ||
| 473 | + error: 'thrown from subtest sync throw fails at second' | ||
| 474 | + code: 'ERR_TEST_FAILURE' | ||
| 475 | + stack: |- | ||
| 476 | + * | ||
| 477 | + * | ||
| 478 | + * | ||
| 479 | + * | ||
| 480 | + * | ||
| 481 | + * | ||
| 482 | + * | ||
| 483 | + * | ||
| 484 | + * | ||
| 485 | + * | ||
| 486 | + ... | ||
| 487 | + 1..2 | ||
| 488 | + not ok 56 - subtest sync throw fails | ||
| 489 | + --- | ||
| 490 | + duration_ms: * | ||
| 491 | + failureType: 'subtestsFailed' | ||
| 492 | + error: '2 subtests failed' | ||
| 493 | + code: 'ERR_TEST_FAILURE' | ||
| 494 | + ... | ||
| 495 | + not ok 57 - invalid subtest fail | ||
| 452 | 496 | --- | |
| 453 | 497 | duration_ms: * | |
| 454 | 498 | failureType: 'parentAlreadyFinished' | |
@@ -457,16 +501,16 @@ not ok 56 - invalid subtest fail | |||
| 457 | 501 | stack: |- | |
| 458 | 502 | * | |
| 459 | 503 | ... | |
| 460 | - 1..56 | ||
| 504 | + 1..57 | ||
| 461 | 505 | # 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. | |
| 462 | 506 | # 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. | |
| 463 | 507 | # 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. | |
| 464 | 508 | # 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. | |
| 465 | 509 | # 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. | |
| 466 | 510 | # 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. | |
| 467 | - # tests 56 | ||
| 511 | + # tests 57 | ||
| 468 | 512 | # pass 24 | |
| 469 | - # fail 17 | ||
| 513 | + # fail 18 | ||
| 470 | 514 | # skipped 10 | |
| 471 | 515 | # todo 5 | |
| 472 | 516 | # duration_ms * | |
| Back | FazBrowse Home | New Git URL |
0 commit comments