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