| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b241a1d commit 29b2317
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,7 @@ function createProcessEventHandler(eventName, rootTest) { | |||
| 74 | 74 | } | |
| 75 | 75 | ||
| 76 | 76 | test.fail(new ERR_TEST_FAILURE(err, eventName)); | |
| 77 | - test.postRun(); | ||
| 77 | + test.abortController.abort(); | ||
| 78 | 78 | }; | |
| 79 | 79 | } | |
| 80 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -494,10 +494,9 @@ not ok 50 - custom inspect symbol that throws fail | |||
| 494 | 494 | * | |
| 495 | 495 | * | |
| 496 | 496 | * | |
| 497 | + async Promise.all (index 0) | ||
| 497 | 498 | * | |
| 498 | 499 | * | |
| 499 | - * | ||
| 500 | - async Promise.all (index 0) | ||
| 501 | 500 | ... | |
| 502 | 501 | 1..2 | |
| 503 | 502 | not ok 51 - subtest sync throw fails | |
@@ -628,7 +627,6 @@ not ok 54 - timeouts | |||
| 628 | 627 | code: 'ERR_TEST_FAILURE' | |
| 629 | 628 | stack: |- | |
| 630 | 629 | * | |
| 631 | - * | ||
| 632 | 630 | ... | |
| 633 | 631 | 1..2 | |
| 634 | 632 | not ok 55 - successful thenable | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -372,8 +372,6 @@ Error [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at second | |||
| 372 | 372 | * | |
| 373 | 373 | * | |
| 374 | 374 | * | |
| 375 | - * | ||
| 376 | - * | ||
| 377 | 375 | } | |
| 378 | 376 | </failure> | |
| 379 | 377 | </testcase> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -552,8 +552,6 @@ not ok 51 - custom inspect symbol that throws fail | |||
| 552 | 552 | * | |
| 553 | 553 | * | |
| 554 | 554 | * | |
| 555 | - * | ||
| 556 | - * | ||
| 557 | 555 | ... | |
| 558 | 556 | 1..2 | |
| 559 | 557 | not ok 52 - subtest sync throw fails | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -552,8 +552,6 @@ not ok 51 - custom inspect symbol that throws fail | |||
| 552 | 552 | * | |
| 553 | 553 | * | |
| 554 | 554 | * | |
| 555 | - * | ||
| 556 | - * | ||
| 557 | 555 | ... | |
| 558 | 556 | 1..2 | |
| 559 | 557 | not ok 52 - subtest sync throw fails | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,8 +229,6 @@ | |||
| 229 | 229 | * | |
| 230 | 230 | * | |
| 231 | 231 | * | |
| 232 | - * | ||
| 233 | - * | ||
| 234 | 232 | ||
| 235 | 233 | subtest sync throw fails (*ms) | |
| 236 | 234 | ||
@@ -515,8 +513,6 @@ | |||
| 515 | 513 | * | |
| 516 | 514 | * | |
| 517 | 515 | * | |
| 518 | - * | ||
| 519 | - * | ||
| 520 | 516 | ||
| 521 | 517 | * | |
| 522 | 518 | timed out async test (*ms) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,8 +229,6 @@ | |||
| 229 | 229 | * | |
| 230 | 230 | * | |
| 231 | 231 | * | |
| 232 | - * | ||
| 233 | - * | ||
| 234 | 232 | ||
| 235 | 233 | subtest sync throw fails (*ms) | |
| 236 | 234 | ||
@@ -515,8 +513,6 @@ | |||
| 515 | 513 | * | |
| 516 | 514 | * | |
| 517 | 515 | * | |
| 518 | - * | ||
| 519 | - * | ||
| 520 | 516 | ||
| 521 | 517 | * | |
| 522 | 518 | timed out async test (*ms) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const { describe, it } = require('node:test'); | ||
| 3 | + | ||
| 4 | + describe('unfinished suite with asynchronous error', () => { | ||
| 5 | + it('uses callback', (t, done) => { | ||
| 6 | + setImmediate(() => { | ||
| 7 | + throw new Error('callback test does not complete'); | ||
| 8 | + }); | ||
| 9 | + }); | ||
| 10 | + | ||
| 11 | + it('should pass 1'); | ||
| 12 | + }); | ||
| 13 | + | ||
| 14 | + it('should pass 2'); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,43 @@ | |||
| 1 | + TAP version 13 | ||
| 2 | + # Subtest: unfinished suite with asynchronous error | ||
| 3 | + # Subtest: uses callback | ||
| 4 | + not ok 1 - uses callback | ||
| 5 | + --- | ||
| 6 | + duration_ms: * | ||
| 7 | + location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):3' | ||
| 8 | + failureType: 'uncaughtException' | ||
| 9 | + error: 'callback test does not complete' | ||
| 10 | + code: 'ERR_TEST_FAILURE' | ||
| 11 | + stack: |- | ||
| 12 | + * | ||
| 13 | + * | ||
| 14 | + ... | ||
| 15 | + # Subtest: should pass 1 | ||
| 16 | + ok 2 - should pass 1 | ||
| 17 | + --- | ||
| 18 | + duration_ms: * | ||
| 19 | + ... | ||
| 20 | + 1..2 | ||
| 21 | + not ok 1 - unfinished suite with asynchronous error | ||
| 22 | + --- | ||
| 23 | + duration_ms: * | ||
| 24 | + type: 'suite' | ||
| 25 | + location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):1' | ||
| 26 | + failureType: 'subtestsFailed' | ||
| 27 | + error: '1 subtest failed' | ||
| 28 | + code: 'ERR_TEST_FAILURE' | ||
| 29 | + ... | ||
| 30 | + # Subtest: should pass 2 | ||
| 31 | + ok 2 - should pass 2 | ||
| 32 | + --- | ||
| 33 | + duration_ms: * | ||
| 34 | + ... | ||
| 35 | + 1..2 | ||
| 36 | + # tests 3 | ||
| 37 | + # suites 1 | ||
| 38 | + # pass 2 | ||
| 39 | + # fail 1 | ||
| 40 | + # cancelled 0 | ||
| 41 | + # skipped 0 | ||
| 42 | + # todo 0 | ||
| 43 | + # duration_ms * | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,6 +112,7 @@ const tests = [ | |||
| 112 | 112 | { name: 'test-runner/output/output_cli.js' }, | |
| 113 | 113 | { name: 'test-runner/output/name_pattern.js' }, | |
| 114 | 114 | { name: 'test-runner/output/name_pattern_with_only.js' }, | |
| 115 | + { name: 'test-runner/output/unfinished-suite-async-error.js' }, | ||
| 115 | 116 | { name: 'test-runner/output/unresolved_promise.js' }, | |
| 116 | 117 | { name: 'test-runner/output/default_output.js', transform: specTransform, tty: true }, | |
| 117 | 118 | { name: 'test-runner/output/arbitrary-output.js' }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments