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