-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
verbose.regular.v12.log
446 lines (292 loc) · 14.2 KB
/
verbose.regular.v12.log
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
---tty-stream-chunk-separator
[1mUncaught exception in bad-test-chain.js[22m
[90mbad-test-chain.js:3[39m
[90m2:[39m
[41m 3: test.serial.test('passes', t => t.pass());[49m
[90m4:[39m
TypeError: test.serial.test is not a function
[90m› Object.<anonymous> (test-tap/fixture/report/regular/bad-test-chain.js:3:13)[39m
---tty-stream-chunk-separator
[31m✖ bad-test-chain.js exited with a non-zero exit code: 1[39m
---tty-stream-chunk-separator
[31m✖[39m nested-objects [90m[2m›[22m[39m format with max depth 4
---tty-stream-chunk-separator
[31m✖[39m nested-objects [90m[2m›[22m[39m format like with max depth 4
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m before hook
[35mℹ[39m [90mbefore[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m beforeEach hook for passing test
[35mℹ[39m [90mbeforeEach[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m beforeEach hook for failing test
[35mℹ[39m [90mbeforeEach[39m
---tty-stream-chunk-separator
[32m✔[39m output-in-hook [90m[2m›[22m[39m passing test
---tty-stream-chunk-separator
[31m✖[39m output-in-hook [90m[2m›[22m[39m failing test [31mTest failed via `t.fail()`[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m afterEach hook for passing test
[35mℹ[39m [90mafterEach[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m afterEach.always hook for failing test
[35mℹ[39m [90mafterEachAlways[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m afterEach.always hook for passing test
[35mℹ[39m [90mafterEachAlways[39m
---tty-stream-chunk-separator
output-in-hook [90m[2m›[22m[39m cleanup
[35mℹ[39m [90mafterAlways[39m
---tty-stream-chunk-separator
[33m- test [90m[2m›[22m[39m[33m skip[39m
---tty-stream-chunk-separator
[34m- test [90m[2m›[22m[39m[34m todo[39m
---tty-stream-chunk-separator
[32m✔[39m test [90m[2m›[22m[39m passes
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m fails [31mTest failed via `t.fail()`[39m
---tty-stream-chunk-separator
[31m✔[39m [31mtest [90m[2m›[22m[39m[31m known failure[39m
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m no longer failing [31mTest was expected to fail, but succeeded, you should stop marking the test as failing[39m
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m logs [31mTest failed via `t.fail()`[39m
[35mℹ[39m [90mhello[39m
[35mℹ[39m [90mworld[39m
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m formatted
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m power-assert
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m bad throws [31mImproper usage of `t.throws()` detected[39m
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m bad notThrows [31mImproper usage of `t.notThrows()` detected[39m
---tty-stream-chunk-separator
[31m✖[39m test [90m[2m›[22m[39m implementation throws non-error [31mError thrown in test[39m
---tty-stream-chunk-separator
[31m✖[39m traces-in-t-throws [90m[2m›[22m[39m throws
---tty-stream-chunk-separator
[31m✖[39m traces-in-t-throws [90m[2m›[22m[39m notThrows
---tty-stream-chunk-separator
[31m✖[39m traces-in-t-throws [90m[2m›[22m[39m notThrowsAsync
---tty-stream-chunk-separator
[31m✖[39m traces-in-t-throws [90m[2m›[22m[39m throwsAsync
---tty-stream-chunk-separator
[31m✖[39m traces-in-t-throws [90m[2m›[22m[39m throwsAsync different error
---tty-stream-chunk-separator
[32m✔[39m uncaught-exception [90m[2m›[22m[39m passes
---tty-stream-chunk-separator
[1mUncaught exception in uncaught-exception.js[22m
[90muncaught-exception.js:5[39m
[90m4:[39m setTimeout(() => {
[41m 5: throw new Error('Can’t catch me');[49m
[90m6:[39m });
Error: Can’t catch me
[90m› Timeout._onTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)[39m
[90m[2m› listOnTimeout (internal/timers.js)[22m[39m
[90m[2m› processTimers (internal/timers.js)[22m[39m
---tty-stream-chunk-separator
[31m✖ uncaught-exception.js exited with a non-zero exit code: 1[39m
---tty-stream-chunk-separator
[32m✔[39m unhandled-rejection [90m[2m›[22m[39m passes
---tty-stream-chunk-separator
[32m✔[39m unhandled-rejection [90m[2m›[22m[39m unhandled non-error rejection
---tty-stream-chunk-separator
[1mUnhandled rejection in unhandled-rejection.js[22m
[90munhandled-rejection.js:4[39m
[90m3:[39m const passes = t => {
[41m 4: Promise.reject(new Error('Can’t catch me'));[49m
[90m5:[39m t.pass();
Error: Can’t catch me
[90m› passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)[39m
---tty-stream-chunk-separator
[1mUnhandled rejection in unhandled-rejection.js[22m
[33mnull[39m
---tty-stream-chunk-separator
[90m─[39m
[1mnested-objects [90m[2m›[22m[1m[39m format with max depth 4[22m
[90mnested-objects.js:28[39m
[90m27:[39m };
[41m 28: t.deepEqual(exp, act);[49m
[90m29:[39m });
Difference:
[90m{[39m
a: [90m{[39m
b: [90m{[39m
foo: [34m'[39m[34mbar[39m[34m'[39m[90m,[39m
[90m}[39m[90m,[39m
[90m}[39m[90m,[39m
[32m+[39m c: [90m{[39m
[32m+[39m d: [90m{[39m
[32m+[39m e: [90m{[39m
[32m+[39m foo: [34m'[39m[34mbar[39m[34m'[39m[90m,[39m
[32m+[39m [90m}[39m[90m,[39m
[32m+[39m [90m}[39m[90m,[39m
[32m+[39m [90m}[39m[90m,[39m
[90m}[39m
[90m› test-tap/fixture/report/regular/nested-objects.js:28:4[39m
[1mnested-objects [90m[2m›[22m[1m[39m format like with max depth 4[22m
[90mnested-objects.js:54[39m
[90m53:[39m };
[41m 54: t.like(actual, pattern);[49m
[90m55:[39m });
Difference:
[90m{[39m
a: [90m{[39m
b: [90m{[39m
[31m-[39m foo: [34m'[39m[31mbar[39m[34m'[39m[90m,[39m
[32m+[39m foo: [34m'[39m[32mqux[39m[34m'[39m[90m,[39m
[90m}[39m[90m,[39m
[90m}[39m[90m,[39m
[90m}[39m
[90m› test-tap/fixture/report/regular/nested-objects.js:54:4[39m
[1moutput-in-hook [90m[2m›[22m[1m[39m failing test[22m
[90moutput-in-hook.js:34[39m
[90m33:[39m test('failing test', t => {
[41m 34: t.fail(); [49m
[90m35:[39m });
Test failed via `t.fail()`
[90m› test-tap/fixture/report/regular/output-in-hook.js:34:4[39m
[1mtest [90m[2m›[22m[1m[39m fails[22m
[90mtest.js:9[39m
[90m8:[39m
[41m 9: test('fails', t => t.fail());[49m
[90m10:[39m
Test failed via `t.fail()`
[90m› test-tap/fixture/report/regular/test.js:9:22[39m
[1mtest [90m[2m›[22m[1m[39m no longer failing[22m
Error: Test was expected to fail, but succeeded, you should stop marking the test as failing
[1mtest [90m[2m›[22m[1m[39m logs[22m
[35mℹ[39m [90mhello[39m
[35mℹ[39m [90mworld[39m
[90mtest.js:18[39m
[90m17:[39m t.log('world');
[41m 18: t.fail(); [49m
[90m19:[39m });
Test failed via `t.fail()`
[90m› test-tap/fixture/report/regular/test.js:18:4[39m
[1mtest [90m[2m›[22m[1m[39m formatted[22m
[90mtest.js:22[39m
[90m21:[39m test('formatted', t => {
[41m 22: t.deepEqual('foo', 'bar');[49m
[90m23:[39m });
Difference:
[31m-[39m [34m'[39m[31mfoo[39m[34m'[39m
[32m+[39m [34m'[39m[32mbar[39m[34m'[39m
[90m› test-tap/fixture/report/regular/test.js:22:4[39m
[1mtest [90m[2m›[22m[1m[39m power-assert[22m
[90mtest.js:27[39m
[90m26:[39m const foo = '';
[41m 27: t.assert(foo); [49m
[90m28:[39m });
Value is not truthy:
[34m'[39m[34m[39m[34m'[39m
foo
[90m=>[39m [34m'[39m[34m[39m[34m'[39m
[90m› test-tap/fixture/report/regular/test.js:27:4[39m
[1mtest [90m[2m›[22m[1m[39m bad throws[22m
[90mtest.js:35[39m
[90m34:[39m
[41m 35: t.throws(fn());[49m
[90m36:[39m });
Improper usage of `t.throws()` detected
The following error was thrown, possibly before `t.throws()` could be called:
[35mError[39m [90m{[39m
message: [34m'[39m[34merr[39m[34m'[39m[90m,[39m
[90m}[39m
Try wrapping the first argument to `t.throws()` in a function:
[36mt.throws(() => { [39m[90m/* your code here */[39m[36m })[39m
Visit the following URL for more details:
[34m[4mhttps://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message[24m[39m
[90m› fn (test-tap/fixture/report/regular/test.js:32:9)[39m
[90m› test-tap/fixture/report/regular/test.js:35:11[39m
[1mtest [90m[2m›[22m[1m[39m bad notThrows[22m
[90mtest.js:43[39m
[90m42:[39m
[41m 43: t.notThrows(fn());[49m
[90m44:[39m });
Improper usage of `t.notThrows()` detected
The following error was thrown, possibly before `t.notThrows()` could be called:
[35mError[39m [90m{[39m
message: [34m'[39m[34merr[39m[34m'[39m[90m,[39m
[90m}[39m
Try wrapping the first argument to `t.notThrows()` in a function:
[36mt.notThrows(() => { [39m[90m/* your code here */[39m[36m })[39m
Visit the following URL for more details:
[34m[4mhttps://github.com/avajs/ava/blob/v1.0.0-beta.5.1/docs/03-assertions.md#throwsfn-expected-message[24m[39m
[90m› fn (test-tap/fixture/report/regular/test.js:40:9)[39m
[90m› test-tap/fixture/report/regular/test.js:43:14[39m
[1mtest [90m[2m›[22m[1m[39m implementation throws non-error[22m
Error thrown in test:
[33mnull[39m
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throws[22m
[90mtraces-in-t-throws.js:12[39m
[90m11:[39m test('throws', t => {
[41m 12: t.throws(() => throwError(), {instanceOf: TypeError});[49m
[90m13:[39m });
Function threw unexpected exception:
[35mError[39m [90m{[39m
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
[90m}[39m
Expected instance of:
[35mFunction[39m [34mTypeError[39m [90m{[39m[90m}[39m
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.js:4:8)[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:12:17[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:12:4[39m
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m notThrows[22m
[90mtraces-in-t-throws.js:16[39m
[90m15:[39m test('notThrows', t => {
[41m 16: t.notThrows(() => throwError());[49m
[90m17:[39m });
Function threw:
[35mError[39m [90m{[39m
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
[90m}[39m
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.js:4:8)[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:16:20[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:16:4[39m
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m notThrowsAsync[22m
[90mtraces-in-t-throws.js:20[39m
[90m19:[39m test('notThrowsAsync', t => {
[41m 20: t.notThrowsAsync(() => throwError());[49m
[90m21:[39m });
Function threw:
[35mError[39m [90m{[39m
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
[90m}[39m
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.js:4:8)[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:20:25[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:20:4[39m
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throwsAsync[22m
[90mtraces-in-t-throws.js:24[39m
[90m23:[39m test('throwsAsync', t => {
[41m 24: t.throwsAsync(() => throwError(), {instanceOf: TypeError});[49m
[90m25:[39m });
Function threw synchronously. Use `t.throws()` instead:
[35mError[39m [90m{[39m
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
[90m}[39m
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.js:4:8)[39m
[90m› t.throwsAsync.instanceOf (test-tap/fixture/report/regular/traces-in-t-throws.js:24:22)[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:24:4[39m
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throwsAsync different error[22m
[90mtraces-in-t-throws.js:28[39m
[90m27:[39m test('throwsAsync different error', t => {
[41m 28: return t.throwsAsync(returnRejectedPromise, {instanceOf: TypeError});[49m
[90m29:[39m });
Returned promise rejected with unexpected exception:
[35mError[39m [90m{[39m
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
[90m}[39m
Expected instance of:
[35mFunction[39m [34mTypeError[39m [90m{[39m[90m}[39m
[90m› returnRejectedPromise (test-tap/fixture/report/regular/traces-in-t-throws.js:8:24)[39m
[90m› test-tap/fixture/report/regular/traces-in-t-throws.js:28:11[39m
[90m─[39m
[31m16 tests failed[39m
[31m1 known failure[39m
[33m1 test skipped[39m
[34m1 test todo[39m
[31m2 unhandled rejections[39m
[31m2 uncaught exceptions[39m
---tty-stream-chunk-separator