/
verbose.regular.log
262 lines (174 loc) · 8.27 KB
/
verbose.regular.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
---tty-stream-chunk-separator
[1mUncaught exception in test/fixture/report/regular/bad-test-chain.js[22m
[90m~/test/fixture/report/regular/bad-test-chain.js:3[39m
[90m2:[39m
[41m 3: test.serial.test('passes', t => t.pass());[49m
[90m4:[39m
TypeError: _.default.serial.test is not a function
---tty-stream-chunk-separator
[31m✖ test/fixture/report/regular/bad-test-chain.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 test/fixture/report/regular/unhandled-rejection.js[22m
[90m~/test/fixture/report/regular/unhandled-rejection.js:4[39m
[90m3:[39m test('passes', t => {
[41m 4: Promise.reject(new Error('Can/'t catch me'));[49m
[90m5:[39m t.pass();
Error: Can't catch me
---tty-stream-chunk-separator
[1mUnhandled rejection in test/fixture/report/regular/unhandled-rejection.js[22m
[33mnull[39m
---tty-stream-chunk-separator
[32m✔[39m uncaught-exception [90m[2m›[22m[39m passes
---tty-stream-chunk-separator
[1mUncaught exception in test/fixture/report/regular/uncaught-exception.js[22m
[90m~/test/fixture/report/regular/uncaught-exception.js:5[39m
[90m4:[39m setTimeout(() => {
[41m 5: throw new Error('Can/'t catch me');[49m
[90m6:[39m });
Error: Can't catch me
---tty-stream-chunk-separator
[31m✖ test/fixture/report/regular/uncaught-exception.js exited with a non-zero exit code: 1[39m
---tty-stream-chunk-separator
stdout
---tty-stream-chunk-separator
stderr
---tty-stream-chunk-separator
[33m- test [90m[2m›[22m[33m skip[39m
---tty-stream-chunk-separator
[34m- test [90m[2m›[22m[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[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
[32m✔[39m slow [90m[2m›[22m[39m slow[90m[2m (000ms)[22m[39m
---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
[31m9 tests failed[39m
[31m1 known failure[39m
[33m1 test skipped[39m
[34m1 test todo[39m
[31m2 unhandled rejections[39m
[31m2 uncaught exceptions[39m
[31mtest [90m[2m›[22m[31m known failure[39m
[1mtest [90m[2m›[1m[39m fails[22m
[90m~/test/fixture/report/regular/test.js:12[39m
[90m11:[39m
[41m 12: test('fails', t => t.fail());[49m
[90m13:[39m
Test failed via `t.fail()`
[1mtest [90m[2m›[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›[1m[39m logs[22m
[35mℹ[39m [90mhello[39m
[35mℹ[39m [90mworld[39m
[90m~/test/fixture/report/regular/test.js:21[39m
[90m20:[39m t.log('world');
[41m 21: t.fail(); [49m
[90m22:[39m });
Test failed via `t.fail()`
[1mtest [90m[2m›[1m[39m formatted[22m
[90m~/test/fixture/report/regular/test.js:25[39m
[90m24:[39m test('formatted', t => {
[41m 25: t.deepEqual('foo', 'bar');[49m
[90m26:[39m });
Difference:
[31m-[39m [34m'[39m[31mfoo[39m[34m'[39m
[32m+[39m [34m'[39m[32mbar[39m[34m'[39m
[1mtest [90m[2m›[1m[39m power-assert[22m
[90m~/test/fixture/report/regular/test.js:30[39m
[90m29:[39m const foo = 'bar';
[41m 30: t.falsy(foo); [49m
[90m31:[39m });
Value is not falsy:
[34m'[39m[34mbar[39m[34m'[39m
foo
[90m=>[39m [34m'[39m[34mbar[39m[34m'[39m
[1mtest [90m[2m›[1m[39m bad throws[22m
[90m~/test/fixture/report/regular/test.js:38[39m
[90m37:[39m
[41m 38: t.throws(fn());[49m
[90m39:[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
[90mfn (test.js:35:9)[39m
[90mfn (test.js:38:11)[39m
[1mtest [90m[2m›[1m[39m bad notThrows[22m
[90m~/test/fixture/report/regular/test.js:46[39m
[90m45:[39m
[41m 46: t.notThrows(fn());[49m
[90m47:[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
[90mfn (test.js:43:9)[39m
[90mfn (test.js:46:14)[39m
[1mtest [90m[2m›[1m[39m implementation throws non-error[22m
Error thrown in test:
[33mnull[39m
[1moutput-in-hook [90m[2m›[1m[39m failing test[22m
[90m~/test/fixture/report/regular/output-in-hook.js:34[39m
[90m33:[39m test('failing test', t => {
[41m 34: t.fail(); [49m
[90m35:[39m });
Test failed via `t.fail()`
---tty-stream-chunk-separator