-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
/
testFailing.test.ts.snap
442 lines (345 loc) · 13.7 KB
/
testFailing.test.ts.snap
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`works with all statuses 1`] = `
"FAIL __tests__/statuses.test.js
✓ passes
✕ fails
✓ failing fails = passes
✓ failing fails = passes with test syntax
✕ .add(1, 1)
✕ .add(1, 2)
✕ .add(2, 1)
✕ failing passes = fails
○ skipped skips
○ skipped skipped failing 1
○ skipped skipped failing 2
○ skipped skipped failing with different syntax
○ skipped skipped failing with another different syntax
✎ todo todo
● fails
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
11 |
12 | it('fails', () => {
> 13 | expect(10).toBe(101);
| ^
14 | });
15 |
16 | it.skip('skips', () => {
at Object.toBe (__tests__/statuses.test.js:13:14)
● .add(1, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
32 | {a: 1, b: 2, expected: 3},
33 | {a: 2, b: 1, expected: 3},
> 34 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
35 | expect(a + b).toBe(expected);
36 | });
37 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at Object.<anonymous> (__tests__/statuses.test.js:34:3)
● .add(1, 2)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
32 | {a: 1, b: 2, expected: 3},
33 | {a: 2, b: 1, expected: 3},
> 34 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
35 | expect(a + b).toBe(expected);
36 | });
37 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at Object.<anonymous> (__tests__/statuses.test.js:34:3)
● .add(2, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
32 | {a: 1, b: 2, expected: 3},
33 | {a: 2, b: 1, expected: 3},
> 34 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
35 | expect(a + b).toBe(expected);
36 | });
37 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at Object.<anonymous> (__tests__/statuses.test.js:34:3)
● failing passes = fails
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
44 | });
45 |
> 46 | it.failing('failing passes = fails', () => {
| ^
47 | expect(10).toBe(10);
48 | });
49 |
at Object.failing (__tests__/statuses.test.js:46:4)"
`;
exports[`works with concurrent and only mode 1`] = `
"FAIL __tests__/worksWithConcurrentOnlyMode.test.js
block with concurrent
✕ failing passes = fails
✕ .add(1, 1)
✕ .add(1, 2)
✕ .add(2, 1)
✓ failing fails = passes
○ skipped skipped failing test
○ skipped skipped failing fails
● block with concurrent › failing passes = fails
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
11 | });
12 |
> 13 | it.concurrent.only.failing('failing passes = fails', () => {
| ^
14 | expect(10).toBe(10);
15 | });
16 |
at failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22)
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
● block with concurrent › .add(1, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentOnlyMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
● block with concurrent › .add(1, 2)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentOnlyMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
● block with concurrent › .add(2, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentOnlyMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)"
`;
exports[`works with concurrent mode 1`] = `
"FAIL __tests__/worksWithConcurrentMode.test.js
block with concurrent
✕ failing test
✕ failing passes = fails
✕ .add(1, 1)
✕ .add(1, 2)
✕ .add(2, 1)
✓ failing fails = passes
○ skipped skipped failing fails
● block with concurrent › failing test
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
8 | describe('block with concurrent', () => {
9 | it('failing test', () => {
> 10 | expect(10).toBe(101);
| ^
11 | });
12 |
13 | it.concurrent.failing('failing passes = fails', () => {
at Object.toBe (__tests__/worksWithConcurrentMode.test.js:10:16)
● block with concurrent › failing passes = fails
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
11 | });
12 |
> 13 | it.concurrent.failing('failing passes = fails', () => {
| ^
14 | expect(10).toBe(10);
15 | });
16 |
at failing (__tests__/worksWithConcurrentMode.test.js:13:17)
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
● block with concurrent › .add(1, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
● block with concurrent › .add(1, 2)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
● block with concurrent › .add(2, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},
> 21 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
22 | expect(a + b).toBe(expected);
23 | });
24 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithConcurrentMode.test.js:21:5
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)"
`;
exports[`works with only mode 1`] = `
"FAIL __tests__/worksWithOnlyMode.test.js
block with only, should pass
✓ failing fails = passes, should pass
✕ .add(1, 1)
✕ .add(1, 2)
✕ .add(2, 1)
○ skipped failing test but skipped
○ skipped passing test but skipped
block with only, should fail
✕ failing passes = fails, should fail
○ skipped failing test but skipped
○ skipped passing test but skipped
block with only in other it, should skip
✕ failing test
○ skipped failing passes = fails, should fail but skipped
○ skipped passing test but skipped
block with only with different syntax, should fail
✕ failing passes = fails, should fail 1
✕ failing passes = fails, should fail 2
○ skipped failing test but skipped
○ skipped passing test but skipped
● block with only, should pass › .add(1, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
17 | {a: 1, b: 2, expected: 3},
18 | {a: 2, b: 1, expected: 3},
> 19 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
20 | expect(a + b).toBe(expected);
21 | });
22 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithOnlyMode.test.js:19:5
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
● block with only, should pass › .add(1, 2)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
17 | {a: 1, b: 2, expected: 3},
18 | {a: 2, b: 1, expected: 3},
> 19 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
20 | expect(a + b).toBe(expected);
21 | });
22 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithOnlyMode.test.js:19:5
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
● block with only, should pass › .add(2, 1)
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
17 | {a: 1, b: 2, expected: 3},
18 | {a: 2, b: 1, expected: 3},
> 19 | ])('.add($a, $b)', ({a, b, expected}) => {
| ^
20 | expect(a + b).toBe(expected);
21 | });
22 |
at ../../packages/jest-each/build/bind.js:38:11
at Array.forEach (<anonymous>)
at __tests__/worksWithOnlyMode.test.js:19:5
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
● block with only, should fail › failing passes = fails, should fail
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
31 |
32 | describe('block with only, should fail', () => {
> 33 | it.only.failing('failing passes = fails, should fail', () => {
| ^
34 | expect(10).toBe(10);
35 | });
36 |
at failing (__tests__/worksWithOnlyMode.test.js:33:11)
at Object.describe (__tests__/worksWithOnlyMode.test.js:32:1)
● block with only in other it, should skip › failing test
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
50 |
51 | it.only('failing test', () => {
> 52 | expect(10).toBe(101);
| ^
53 | });
54 |
55 | it('passing test but skipped', () => {
at Object.toBe (__tests__/worksWithOnlyMode.test.js:52:16)
● block with only with different syntax, should fail › failing passes = fails, should fail 1
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
59 |
60 | describe('block with only with different syntax, should fail', () => {
> 61 | fit.failing('failing passes = fails, should fail 1', () => {
| ^
62 | expect(10).toBe(10);
63 | });
64 |
at failing (__tests__/worksWithOnlyMode.test.js:61:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1)
● block with only with different syntax, should fail › failing passes = fails, should fail 2
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
63 | });
64 |
> 65 | test.only.failing('failing passes = fails, should fail 2', () => {
| ^
66 | expect(10).toBe(10);
67 | });
68 |
at failing (__tests__/worksWithOnlyMode.test.js:65:13)
at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1)"
`;
exports[`works with skip mode 1`] = `
"FAIL __tests__/worksWithSkipMode.test.js
block with only, should pass
✕ failing test
✓ failing fails = passes
○ skipped skipped failing fails = passes, should pass
○ skipped .add(1, 1)
○ skipped .add(1, 2)
○ skipped .add(2, 1)
○ skipped passing test
block with only, should fail
✓ passing test
✓ failing passes = fails
○ skipped failing passes = fails, should fail
○ skipped failing test
● block with only, should pass › failing test
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
20 |
21 | it('failing test', () => {
> 22 | expect(10).toBe(101);
| ^
23 | });
24 |
25 | it.skip('passing test', () => {
at Object.toBe (__tests__/worksWithSkipMode.test.js:22:16)"
`;