/
testFailing.test.ts.snap
104 lines (80 loc) · 2.75 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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`works with all statuses 1`] = `
"FAIL __tests__/statuses.test.js
✓ passes
✕ fails
✓ failing failes = passes
✕ failing passes = fails
○ skipped skips
○ skipped skipped failing 1
○ skipped skipped failing 2
✎ 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)
● failing passes = fails
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error."
`;
exports[`works with only mode 1`] = `
"FAIL __tests__/worksWithOnlyMode.test.js
block with only, should pass
✓ failing failes = passes, should pass
○ 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, should fail › failing passes = fails, should fail
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
● block with only in other it, should skip › failing test
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
41 | // eslint-disable-next-line jest/no-focused-tests
42 | it.only('failing test', () => {
> 43 | expect(10).toBe(101);
| ^
44 | });
45 |
46 | it('passing test but skipped', () => {
at Object.toBe (__tests__/worksWithOnlyMode.test.js:43:16)"
`;
exports[`works with skip mode 1`] = `
"FAIL __tests__/worksWithSkipMode.test.js
block with only, should pass
✕ failing test
✓ failing failes = passes
○ skipped skipped failing failes = passes, should pass
○ 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
12 |
13 | it('failing test', () => {
> 14 | expect(10).toBe(101);
| ^
15 | });
16 |
17 | it.skip('passing test', () => {
at Object.toBe (__tests__/worksWithSkipMode.test.js:14:16)"
`;