1TAP version 13 2# Subtest: sync pass todo 3ok 1 - sync pass todo # TODO 4 --- 5 duration_ms: * 6 ... 7# Subtest: sync pass todo with message 8ok 2 - sync pass todo with message # TODO this is a passing todo 9 --- 10 duration_ms: * 11 ... 12# Subtest: sync fail todo 13not ok 3 - sync fail todo # TODO 14 --- 15 duration_ms: * 16 failureType: 'testCodeFailure' 17 error: 'thrown from sync fail todo' 18 code: 'ERR_TEST_FAILURE' 19 stack: |- 20 * 21 * 22 * 23 * 24 * 25 * 26 * 27 ... 28# Subtest: sync fail todo with message 29not ok 4 - sync fail todo with message # TODO this is a failing todo 30 --- 31 duration_ms: * 32 failureType: 'testCodeFailure' 33 error: 'thrown from sync fail todo with message' 34 code: 'ERR_TEST_FAILURE' 35 stack: |- 36 * 37 * 38 * 39 * 40 * 41 * 42 * 43 ... 44# Subtest: sync skip pass 45ok 5 - sync skip pass # SKIP 46 --- 47 duration_ms: * 48 ... 49# Subtest: sync skip pass with message 50ok 6 - sync skip pass with message # SKIP this is skipped 51 --- 52 duration_ms: * 53 ... 54# Subtest: sync pass 55ok 7 - sync pass 56 --- 57 duration_ms: * 58 ... 59# this test should pass 60# Subtest: sync throw fail 61not ok 8 - sync throw fail 62 --- 63 duration_ms: * 64 failureType: 'testCodeFailure' 65 error: 'thrown from sync throw fail' 66 code: 'ERR_TEST_FAILURE' 67 stack: |- 68 * 69 * 70 * 71 * 72 * 73 * 74 * 75 ... 76# Subtest: async skip pass 77ok 9 - async skip pass # SKIP 78 --- 79 duration_ms: * 80 ... 81# Subtest: async pass 82ok 10 - async pass 83 --- 84 duration_ms: * 85 ... 86# Subtest: async throw fail 87not ok 11 - async throw fail 88 --- 89 duration_ms: * 90 failureType: 'testCodeFailure' 91 error: 'thrown from async throw fail' 92 code: 'ERR_TEST_FAILURE' 93 stack: |- 94 * 95 * 96 * 97 * 98 * 99 * 100 * 101 ... 102# Subtest: async skip fail 103not ok 12 - async skip fail # SKIP 104 --- 105 duration_ms: * 106 failureType: 'testCodeFailure' 107 error: 'thrown from async throw fail' 108 code: 'ERR_TEST_FAILURE' 109 stack: |- 110 * 111 * 112 * 113 * 114 * 115 * 116 * 117 ... 118# Subtest: async assertion fail 119not ok 13 - async assertion fail 120 --- 121 duration_ms: * 122 failureType: 'testCodeFailure' 123 error: |- 124 Expected values to be strictly equal: 125 126 true !== false 127 128 code: 'ERR_ASSERTION' 129 name: 'AssertionError' 130 expected: false 131 actual: true 132 operator: 'strictEqual' 133 stack: |- 134 * 135 * 136 * 137 * 138 * 139 * 140 * 141 ... 142# Subtest: resolve pass 143ok 14 - resolve pass 144 --- 145 duration_ms: * 146 ... 147# Subtest: reject fail 148not ok 15 - reject fail 149 --- 150 duration_ms: * 151 failureType: 'testCodeFailure' 152 error: 'rejected from reject fail' 153 code: 'ERR_TEST_FAILURE' 154 stack: |- 155 * 156 * 157 * 158 * 159 * 160 * 161 * 162 ... 163# Subtest: unhandled rejection - passes but warns 164ok 16 - unhandled rejection - passes but warns 165 --- 166 duration_ms: * 167 ... 168# Subtest: async unhandled rejection - passes but warns 169ok 17 - async unhandled rejection - passes but warns 170 --- 171 duration_ms: * 172 ... 173# Subtest: immediate throw - passes but warns 174ok 18 - immediate throw - passes but warns 175 --- 176 duration_ms: * 177 ... 178# Subtest: immediate reject - passes but warns 179ok 19 - immediate reject - passes but warns 180 --- 181 duration_ms: * 182 ... 183# Subtest: immediate resolve pass 184ok 20 - immediate resolve pass 185 --- 186 duration_ms: * 187 ... 188# Subtest: subtest sync throw fail 189 # Subtest: +sync throw fail 190 not ok 1 - +sync throw fail 191 --- 192 duration_ms: * 193 failureType: 'testCodeFailure' 194 error: 'thrown from subtest sync throw fail' 195 code: 'ERR_TEST_FAILURE' 196 stack: |- 197 * 198 * 199 * 200 * 201 * 202 * 203 * 204 * 205 * 206 * 207 ... 208 # this subtest should make its parent test fail 209 1..1 210not ok 21 - subtest sync throw fail 211 --- 212 duration_ms: * 213 failureType: 'subtestsFailed' 214 error: '1 subtest failed' 215 code: 'ERR_TEST_FAILURE' 216 ... 217# Subtest: sync throw non-error fail 218not ok 22 - sync throw non-error fail 219 --- 220 duration_ms: * 221 failureType: 'testCodeFailure' 222 error: 'Symbol(thrown symbol from sync throw non-error fail)' 223 code: 'ERR_TEST_FAILURE' 224 ... 225# Subtest: level 0a 226 # Subtest: level 1a 227 ok 1 - level 1a 228 --- 229 duration_ms: * 230 ... 231 # Subtest: level 1b 232 ok 2 - level 1b 233 --- 234 duration_ms: * 235 ... 236 # Subtest: level 1c 237 ok 3 - level 1c 238 --- 239 duration_ms: * 240 ... 241 # Subtest: level 1d 242 ok 4 - level 1d 243 --- 244 duration_ms: * 245 ... 246 1..4 247ok 23 - level 0a 248 --- 249 duration_ms: * 250 ... 251# Subtest: top level 252 # Subtest: +long running 253 not ok 1 - +long running 254 --- 255 duration_ms: * 256 failureType: 'cancelledByParent' 257 error: 'test did not finish before its parent and was cancelled' 258 code: 'ERR_TEST_FAILURE' 259 ... 260 # Subtest: +short running 261 # Subtest: ++short running 262 ok 1 - ++short running 263 --- 264 duration_ms: * 265 ... 266 1..1 267 ok 2 - +short running 268 --- 269 duration_ms: * 270 ... 271 1..2 272not ok 24 - top level 273 --- 274 duration_ms: * 275 failureType: 'subtestsFailed' 276 error: '1 subtest failed' 277 code: 'ERR_TEST_FAILURE' 278 ... 279# Subtest: invalid subtest - pass but subtest fails 280ok 25 - invalid subtest - pass but subtest fails 281 --- 282 duration_ms: * 283 ... 284# Subtest: sync skip option 285ok 26 - sync skip option # SKIP 286 --- 287 duration_ms: * 288 ... 289# Subtest: sync skip option with message 290ok 27 - sync skip option with message # SKIP this is skipped 291 --- 292 duration_ms: * 293 ... 294# Subtest: sync skip option is false fail 295not ok 28 - sync skip option is false fail 296 --- 297 duration_ms: * 298 failureType: 'testCodeFailure' 299 error: 'this should be executed' 300 code: 'ERR_TEST_FAILURE' 301 stack: |- 302 * 303 * 304 * 305 * 306 * 307 * 308 * 309 ... 310# Subtest: <anonymous> 311ok 29 - <anonymous> 312 --- 313 duration_ms: * 314 ... 315# Subtest: functionOnly 316ok 30 - functionOnly 317 --- 318 duration_ms: * 319 ... 320# Subtest: <anonymous> 321ok 31 - <anonymous> 322 --- 323 duration_ms: * 324 ... 325# Subtest: test with only a name provided 326ok 32 - test with only a name provided 327 --- 328 duration_ms: * 329 ... 330# Subtest: <anonymous> 331ok 33 - <anonymous> 332 --- 333 duration_ms: * 334 ... 335# Subtest: <anonymous> 336ok 34 - <anonymous> # SKIP 337 --- 338 duration_ms: * 339 ... 340# Subtest: test with a name and options provided 341ok 35 - test with a name and options provided # SKIP 342 --- 343 duration_ms: * 344 ... 345# Subtest: functionAndOptions 346ok 36 - functionAndOptions # SKIP 347 --- 348 duration_ms: * 349 ... 350# Subtest: escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r 351ok 37 - escaped description \\ \# \\\#\\ \\n \\t \\f \\v \\b \\r 352 --- 353 duration_ms: * 354 ... 355# Subtest: escaped skip message 356ok 38 - escaped skip message # SKIP \#skip 357 --- 358 duration_ms: * 359 ... 360# Subtest: escaped todo message 361ok 39 - escaped todo message # TODO \#todo 362 --- 363 duration_ms: * 364 ... 365# Subtest: escaped diagnostic 366ok 40 - escaped diagnostic 367 --- 368 duration_ms: * 369 ... 370# \#diagnostic 371# Subtest: callback pass 372ok 41 - callback pass 373 --- 374 duration_ms: * 375 ... 376# Subtest: callback fail 377not ok 42 - callback fail 378 --- 379 duration_ms: * 380 failureType: 'testCodeFailure' 381 error: 'callback failure' 382 code: 'ERR_TEST_FAILURE' 383 stack: |- 384 * 385 * 386 ... 387# Subtest: sync t is this in test 388ok 43 - sync t is this in test 389 --- 390 duration_ms: * 391 ... 392# Subtest: async t is this in test 393ok 44 - async t is this in test 394 --- 395 duration_ms: * 396 ... 397# Subtest: callback t is this in test 398ok 45 - callback t is this in test 399 --- 400 duration_ms: * 401 ... 402# Subtest: callback also returns a Promise 403not ok 46 - callback also returns a Promise 404 --- 405 duration_ms: * 406 failureType: 'callbackAndPromisePresent' 407 error: 'passed a callback but also returned a Promise' 408 code: 'ERR_TEST_FAILURE' 409 ... 410# Subtest: callback throw 411not ok 47 - callback throw 412 --- 413 duration_ms: * 414 failureType: 'testCodeFailure' 415 error: 'thrown from callback throw' 416 code: 'ERR_TEST_FAILURE' 417 stack: |- 418 * 419 * 420 * 421 * 422 * 423 * 424 * 425 ... 426# Subtest: callback called twice 427not ok 48 - callback called twice 428 --- 429 duration_ms: * 430 failureType: 'multipleCallbackInvocations' 431 error: 'callback invoked multiple times' 432 code: 'ERR_TEST_FAILURE' 433 stack: |- 434 * 435 * 436 ... 437# Subtest: callback called twice in different ticks 438ok 49 - callback called twice in different ticks 439 --- 440 duration_ms: * 441 ... 442# Subtest: callback called twice in future tick 443not ok 50 - callback called twice in future tick 444 --- 445 duration_ms: * 446 failureType: 'uncaughtException' 447 error: 'callback invoked multiple times' 448 code: 'ERR_TEST_FAILURE' 449 stack: |- 450 * 451 ... 452# Subtest: callback async throw 453not ok 51 - callback async throw 454 --- 455 duration_ms: * 456 failureType: 'uncaughtException' 457 error: 'thrown from callback async throw' 458 code: 'ERR_TEST_FAILURE' 459 stack: |- 460 * 461 * 462 ... 463# Subtest: callback async throw after done 464ok 52 - callback async throw after done 465 --- 466 duration_ms: * 467 ... 468# Subtest: only is set but not in only mode 469 # Subtest: running subtest 1 470 ok 1 - running subtest 1 471 --- 472 duration_ms: * 473 ... 474 # Subtest: running subtest 2 475 ok 2 - running subtest 2 476 --- 477 duration_ms: * 478 ... 479 # 'only' and 'runOnly' require the --test-only command-line option. 480 # Subtest: running subtest 3 481 ok 3 - running subtest 3 482 --- 483 duration_ms: * 484 ... 485 # 'only' and 'runOnly' require the --test-only command-line option. 486 # Subtest: running subtest 4 487 ok 4 - running subtest 4 488 --- 489 duration_ms: * 490 ... 491 1..4 492ok 53 - only is set but not in only mode 493 --- 494 duration_ms: * 495 ... 496# 'only' and 'runOnly' require the --test-only command-line option. 497# Subtest: custom inspect symbol fail 498not ok 54 - custom inspect symbol fail 499 --- 500 duration_ms: * 501 failureType: 'testCodeFailure' 502 error: 'customized' 503 code: 'ERR_TEST_FAILURE' 504 ... 505# Subtest: custom inspect symbol that throws fail 506not ok 55 - custom inspect symbol that throws fail 507 --- 508 duration_ms: * 509 failureType: 'testCodeFailure' 510 error: |- 511 { 512 foo: 1, 513 [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]] 514 } 515 code: 'ERR_TEST_FAILURE' 516 ... 517# Subtest: subtest sync throw fails 518 # Subtest: sync throw fails at first 519 not ok 1 - sync throw fails at first 520 --- 521 duration_ms: * 522 failureType: 'testCodeFailure' 523 error: 'thrown from subtest sync throw fails at first' 524 code: 'ERR_TEST_FAILURE' 525 stack: |- 526 * 527 * 528 * 529 * 530 * 531 * 532 * 533 * 534 * 535 * 536 ... 537 # Subtest: sync throw fails at second 538 not ok 2 - sync throw fails at second 539 --- 540 duration_ms: * 541 failureType: 'testCodeFailure' 542 error: 'thrown from subtest sync throw fails at second' 543 code: 'ERR_TEST_FAILURE' 544 stack: |- 545 * 546 * 547 * 548 * 549 * 550 * 551 * 552 * 553 * 554 * 555 ... 556 1..2 557not ok 56 - subtest sync throw fails 558 --- 559 duration_ms: * 560 failureType: 'subtestsFailed' 561 error: '2 subtests failed' 562 code: 'ERR_TEST_FAILURE' 563 ... 564# Subtest: timed out async test 565not ok 57 - timed out async test 566 --- 567 duration_ms: * 568 failureType: 'testTimeoutFailure' 569 error: 'test timed out after 5ms' 570 code: 'ERR_TEST_FAILURE' 571 ... 572# Subtest: timed out callback test 573not ok 58 - timed out callback test 574 --- 575 duration_ms: * 576 failureType: 'testTimeoutFailure' 577 error: 'test timed out after 5ms' 578 code: 'ERR_TEST_FAILURE' 579 ... 580# Subtest: large timeout async test is ok 581ok 59 - large timeout async test is ok 582 --- 583 duration_ms: * 584 ... 585# Subtest: large timeout callback test is ok 586ok 60 - large timeout callback test is ok 587 --- 588 duration_ms: * 589 ... 590# Subtest: successful thenable 591ok 61 - successful thenable 592 --- 593 duration_ms: * 594 ... 595# Subtest: rejected thenable 596not ok 62 - rejected thenable 597 --- 598 duration_ms: * 599 failureType: 'testCodeFailure' 600 error: 'custom error' 601 code: 'ERR_TEST_FAILURE' 602 ... 603# Subtest: unfinished test with uncaughtException 604not ok 63 - unfinished test with uncaughtException 605 --- 606 duration_ms: * 607 failureType: 'uncaughtException' 608 error: 'foo' 609 code: 'ERR_TEST_FAILURE' 610 stack: |- 611 * 612 * 613 * 614 ... 615# Subtest: unfinished test with unhandledRejection 616not ok 64 - unfinished test with unhandledRejection 617 --- 618 duration_ms: * 619 failureType: 'unhandledRejection' 620 error: 'bar' 621 code: 'ERR_TEST_FAILURE' 622 stack: |- 623 * 624 * 625 * 626 ... 627# Subtest: assertion errors display actual and expected properly 628not ok 65 - assertion errors display actual and expected properly 629 --- 630 duration_ms: * 631 failureType: 'testCodeFailure' 632 error: |- 633 Expected values to be loosely deep-equal: 634 635 { 636 bar: 1, 637 foo: 1 638 } 639 640 should loosely deep-equal 641 642 <ref *1> { 643 bar: 2, 644 c: [Circular *1] 645 } 646 code: 'ERR_ASSERTION' 647 name: 'AssertionError' 648 expected: 649 bar: 2 650 c: <Circular> 651 actual: 652 foo: 1 653 bar: 1 654 operator: 'deepEqual' 655 stack: |- 656 * 657 ... 658# Subtest: invalid subtest fail 659not ok 66 - invalid subtest fail 660 --- 661 duration_ms: * 662 failureType: 'parentAlreadyFinished' 663 error: 'test could not be started because its parent finished' 664 code: 'ERR_TEST_FAILURE' 665 stack: |- 666 * 667 ... 668# 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. 669# 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. 670# 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. 671# 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. 672# 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. 673# 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. 674# 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. 675# Subtest: last test 676ok 67 - last test 677 --- 678 duration_ms: * 679 ... 6801..67 681# tests 81 682# suites 0 683# pass 38 684# fail 25 685# cancelled 3 686# skipped 10 687# todo 5 688# duration_ms * 689