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