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