You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR-URL: #46544
Backport-PR-URL: #46839Fixes: #46478
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Copy file name to clipboardexpand all lines: test/message/test_runner_describe_it.out
+63-53
Original file line number
Diff line number
Diff line change
@@ -82,8 +82,13 @@ ok 10 - async pass
82
82
---
83
83
duration_ms: *
84
84
...
85
+
# Subtest: mixing describe/it and test should work
86
+
ok 11 - mixing describe/it and test should work
87
+
---
88
+
duration_ms: *
89
+
...
85
90
# Subtest: async throw fail
86
-
not ok 11 - async throw fail
91
+
not ok 12 - async throw fail
87
92
---
88
93
duration_ms: *
89
94
failureType: 'testCodeFailure'
@@ -99,15 +104,15 @@ not ok 11 - async throw fail
99
104
*
100
105
...
101
106
# Subtest: async skip fail
102
-
not ok 12 - async skip fail
107
+
not ok 13 - async skip fail
103
108
---
104
109
duration_ms: *
105
110
failureType: 'callbackAndPromisePresent'
106
111
error: 'passed a callback but also returned a Promise'
107
112
code: 'ERR_TEST_FAILURE'
108
113
...
109
114
# Subtest: async assertion fail
110
-
not ok 13 - async assertion fail
115
+
not ok 14 - async assertion fail
111
116
---
112
117
duration_ms: *
113
118
failureType: 'testCodeFailure'
@@ -130,12 +135,12 @@ not ok 13 - async assertion fail
130
135
*
131
136
...
132
137
# Subtest: resolve pass
133
-
ok 14 - resolve pass
138
+
ok 15 - resolve pass
134
139
---
135
140
duration_ms: *
136
141
...
137
142
# Subtest: reject fail
138
-
not ok 15 - reject fail
143
+
not ok 16 - reject fail
139
144
---
140
145
duration_ms: *
141
146
failureType: 'testCodeFailure'
@@ -151,27 +156,27 @@ not ok 15 - reject fail
151
156
*
152
157
...
153
158
# Subtest: unhandled rejection - passes but warns
154
-
ok 16 - unhandled rejection - passes but warns
159
+
ok 17 - unhandled rejection - passes but warns
155
160
---
156
161
duration_ms: *
157
162
...
158
163
# Subtest: async unhandled rejection - passes but warns
159
-
ok 17 - async unhandled rejection - passes but warns
164
+
ok 18 - async unhandled rejection - passes but warns
160
165
---
161
166
duration_ms: *
162
167
...
163
168
# Subtest: immediate throw - passes but warns
164
-
ok 18 - immediate throw - passes but warns
169
+
ok 19 - immediate throw - passes but warns
165
170
---
166
171
duration_ms: *
167
172
...
168
173
# Subtest: immediate reject - passes but warns
169
-
ok 19 - immediate reject - passes but warns
174
+
ok 20 - immediate reject - passes but warns
170
175
---
171
176
duration_ms: *
172
177
...
173
178
# Subtest: immediate resolve pass
174
-
ok 20 - immediate resolve pass
179
+
ok 21 - immediate resolve pass
175
180
---
176
181
duration_ms: *
177
182
...
@@ -195,16 +200,21 @@ ok 20 - immediate resolve pass
195
200
*
196
201
*
197
202
...
198
-
1..1
199
-
not ok 21 - subtest sync throw fail
203
+
# Subtest: mixing describe/it and test should work
204
+
ok 2 - mixing describe/it and test should work
205
+
---
206
+
duration_ms: *
207
+
...
208
+
1..2
209
+
not ok 22 - subtest sync throw fail
200
210
---
201
211
duration_ms: *
202
212
failureType: 'subtestsFailed'
203
213
error: '1 subtest failed'
204
214
code: 'ERR_TEST_FAILURE'
205
215
...
206
216
# Subtest: sync throw non-error fail
207
-
not ok 22 - sync throw non-error fail
217
+
not ok 23 - sync throw non-error fail
208
218
---
209
219
duration_ms: *
210
220
failureType: 'testCodeFailure'
@@ -233,27 +243,27 @@ not ok 22 - sync throw non-error fail
233
243
duration_ms: *
234
244
...
235
245
1..4
236
-
ok 23 - level 0a
246
+
ok 24 - level 0a
237
247
---
238
248
duration_ms: *
239
249
...
240
250
# Subtest: invalid subtest - pass but subtest fails
241
-
ok 24 - invalid subtest - pass but subtest fails
251
+
ok 25 - invalid subtest - pass but subtest fails
242
252
---
243
253
duration_ms: *
244
254
...
245
255
# Subtest: sync skip option
246
-
ok 25 - sync skip option # SKIP
256
+
ok 26 - sync skip option # SKIP
247
257
---
248
258
duration_ms: *
249
259
...
250
260
# Subtest: sync skip option with message
251
-
ok 26 - sync skip option with message # SKIP this is skipped
261
+
ok 27 - sync skip option with message # SKIP this is skipped
252
262
---
253
263
duration_ms: *
254
264
...
255
265
# Subtest: sync skip option is false fail
256
-
not ok 27 - sync skip option is false fail
266
+
not ok 28 - sync skip option is false fail
257
267
---
258
268
duration_ms: *
259
269
failureType: 'testCodeFailure'
@@ -269,67 +279,67 @@ not ok 27 - sync skip option is false fail
269
279
*
270
280
...
271
281
# Subtest: <anonymous>
272
-
ok 28 - <anonymous>
282
+
ok 29 - <anonymous>
273
283
---
274
284
duration_ms: *
275
285
...
276
286
# Subtest: functionOnly
277
-
ok 29 - functionOnly
287
+
ok 30 - functionOnly
278
288
---
279
289
duration_ms: *
280
290
...
281
291
# Subtest: <anonymous>
282
-
ok 30 - <anonymous>
292
+
ok 31 - <anonymous>
283
293
---
284
294
duration_ms: *
285
295
...
286
296
# Subtest: test with only a name provided
287
-
ok 31 - test with only a name provided
297
+
ok 32 - test with only a name provided
288
298
---
289
299
duration_ms: *
290
300
...
291
301
# Subtest: <anonymous>
292
-
ok 32 - <anonymous>
302
+
ok 33 - <anonymous>
293
303
---
294
304
duration_ms: *
295
305
...
296
306
# Subtest: <anonymous>
297
-
ok 33 - <anonymous> # SKIP
307
+
ok 34 - <anonymous> # SKIP
298
308
---
299
309
duration_ms: *
300
310
...
301
311
# Subtest: test with a name and options provided
302
-
ok 34 - test with a name and options provided # SKIP
312
+
ok 35 - test with a name and options provided # SKIP
303
313
---
304
314
duration_ms: *
305
315
...
306
316
# Subtest: functionAndOptions
307
-
ok 35 - functionAndOptions # SKIP
317
+
ok 36 - functionAndOptions # SKIP
308
318
---
309
319
duration_ms: *
310
320
...
311
321
# Subtest: escaped description \\ \# \\\#\\
312
-
ok 36 - escaped description \\ \# \\\#\\
322
+
ok 37 - escaped description \\ \# \\\#\\
313
323
---
314
324
duration_ms: *
315
325
...
316
326
# Subtest: escaped skip message
317
-
ok 37 - escaped skip message # SKIP \#skip
327
+
ok 38 - escaped skip message # SKIP \#skip
318
328
---
319
329
duration_ms: *
320
330
...
321
331
# Subtest: escaped todo message
322
-
ok 38 - escaped todo message # TODO \#todo
332
+
ok 39 - escaped todo message # TODO \#todo
323
333
---
324
334
duration_ms: *
325
335
...
326
336
# Subtest: callback pass
327
-
ok 39 - callback pass
337
+
ok 40 - callback pass
328
338
---
329
339
duration_ms: *
330
340
...
331
341
# Subtest: callback fail
332
-
not ok 40 - callback fail
342
+
not ok 41 - callback fail
333
343
---
334
344
duration_ms: *
335
345
failureType: 'testCodeFailure'
@@ -340,30 +350,30 @@ not ok 40 - callback fail
340
350
*
341
351
...
342
352
# Subtest: sync t is this in test
343
-
ok 41 - sync t is this in test
353
+
ok 42 - sync t is this in test
344
354
---
345
355
duration_ms: *
346
356
...
347
357
# Subtest: async t is this in test
348
-
ok 42 - async t is this in test
358
+
ok 43 - async t is this in test
349
359
---
350
360
duration_ms: *
351
361
...
352
362
# Subtest: callback t is this in test
353
-
ok 43 - callback t is this in test
363
+
ok 44 - callback t is this in test
354
364
---
355
365
duration_ms: *
356
366
...
357
367
# Subtest: callback also returns a Promise
358
-
not ok 44 - callback also returns a Promise
368
+
not ok 45 - callback also returns a Promise
359
369
---
360
370
duration_ms: *
361
371
failureType: 'callbackAndPromisePresent'
362
372
error: 'passed a callback but also returned a Promise'
363
373
code: 'ERR_TEST_FAILURE'
364
374
...
365
375
# Subtest: callback throw
366
-
not ok 45 - callback throw
376
+
not ok 46 - callback throw
367
377
---
368
378
duration_ms: *
369
379
failureType: 'testCodeFailure'
@@ -379,7 +389,7 @@ not ok 45 - callback throw
379
389
*
380
390
...
381
391
# Subtest: callback called twice
382
-
not ok 46 - callback called twice
392
+
not ok 47 - callback called twice
383
393
---
384
394
duration_ms: *
385
395
failureType: 'multipleCallbackInvocations'
@@ -390,12 +400,12 @@ not ok 46 - callback called twice
390
400
*
391
401
...
392
402
# Subtest: callback called twice in different ticks
393
-
ok 47 - callback called twice in different ticks
403
+
ok 48 - callback called twice in different ticks
394
404
---
395
405
duration_ms: *
396
406
...
397
407
# Subtest: callback called twice in future tick
398
-
not ok 48 - callback called twice in future tick
408
+
not ok 49 - callback called twice in future tick
399
409
---
400
410
duration_ms: *
401
411
failureType: 'uncaughtException'
@@ -405,7 +415,7 @@ not ok 48 - callback called twice in future tick
405
415
*
406
416
...
407
417
# Subtest: callback async throw
408
-
not ok 49 - callback async throw
418
+
not ok 50 - callback async throw
409
419
---
410
420
duration_ms: *
411
421
failureType: 'uncaughtException'
@@ -416,20 +426,20 @@ not ok 49 - callback async throw
416
426
*
417
427
...
418
428
# Subtest: callback async throw after done
419
-
ok 50 - callback async throw after done
429
+
ok 51 - callback async throw after done
420
430
---
421
431
duration_ms: *
422
432
...
423
433
# Subtest: custom inspect symbol fail
424
-
not ok 51 - custom inspect symbol fail
434
+
not ok 52 - custom inspect symbol fail
425
435
---
426
436
duration_ms: *
427
437
failureType: 'testCodeFailure'
428
438
error: 'customized'
429
439
code: 'ERR_TEST_FAILURE'
430
440
...
431
441
# Subtest: custom inspect symbol that throws fail
432
-
not ok 52 - custom inspect symbol that throws fail
442
+
not ok 53 - custom inspect symbol that throws fail
433
443
---
434
444
duration_ms: *
435
445
failureType: 'testCodeFailure'
@@ -480,7 +490,7 @@ not ok 52 - custom inspect symbol that throws fail
480
490
*
481
491
...
482
492
1..2
483
-
not ok 53 - subtest sync throw fails
493
+
not ok 54 - subtest sync throw fails
484
494
---
485
495
duration_ms: *
486
496
failureType: 'subtestsFailed'
@@ -497,7 +507,7 @@ not ok 53 - subtest sync throw fails
497
507
code: 'ERR_TEST_FAILURE'
498
508
...
499
509
1..1
500
-
not ok 54 - describe sync throw fails
510
+
not ok 55 - describe sync throw fails
501
511
---
502
512
duration_ms: *
503
513
failureType: 'testCodeFailure'
@@ -525,7 +535,7 @@ not ok 54 - describe sync throw fails
525
535
code: 'ERR_TEST_FAILURE'
526
536
...
527
537
1..1
528
-
not ok 55 - describe async throw fails
538
+
not ok 56 - describe async throw fails
529
539
---
530
540
duration_ms: *
531
541
failureType: 'testCodeFailure'
@@ -573,7 +583,7 @@ not ok 55 - describe async throw fails
573
583
duration_ms: *
574
584
...
575
585
1..4
576
-
not ok 56 - timeouts
586
+
not ok 57 - timeouts
577
587
---
578
588
duration_ms: *
579
589
failureType: 'subtestsFailed'
@@ -598,15 +608,15 @@ not ok 56 - timeouts
598
608
*
599
609
...
600
610
1..2
601
-
not ok 57 - successful thenable
611
+
not ok 58 - successful thenable
602
612
---
603
613
duration_ms: *
604
614
failureType: 'subtestsFailed'
605
615
error: '1 subtest failed'
606
616
code: 'ERR_TEST_FAILURE'
607
617
...
608
618
# Subtest: rejected thenable
609
-
not ok 58 - rejected thenable
619
+
not ok 59 - rejected thenable
610
620
---
611
621
duration_ms: *
612
622
failureType: 'testCodeFailure'
@@ -616,7 +626,7 @@ not ok 58 - rejected thenable
616
626
*
617
627
...
618
628
# Subtest: invalid subtest fail
619
-
not ok 59 - invalid subtest fail
629
+
not ok 60 - invalid subtest fail
620
630
---
621
631
duration_ms: *
622
632
failureType: 'parentAlreadyFinished'
@@ -625,15 +635,15 @@ not ok 59 - invalid subtest fail
625
635
stack: |-
626
636
*
627
637
...
628
-
1..59
638
+
1..60
629
639
# 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.
630
640
# 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.
631
641
# 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.
632
642
# 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.
633
643
# 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.
634
644
# 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.
0 commit comments