forked from jestjs/jest
/
emptyDescribeWithHooks.test.ts.snap
142 lines (111 loc) · 4 KB
/
emptyDescribeWithHooks.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`hook in describe with skipped test 1`] = `
Object {
"rest": "",
"summary": "Seed: <<REPLACED>>
Test Suites: 1 skipped, 0 of 1 total
Tests: 1 skipped, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /hookInDescribeWithSkippedTest.test.js/i.",
}
`;
exports[`hook in empty describe 1`] = `
Object {
"rest": "FAIL __tests__/hookInEmptyDescribe.test.js
● Test suite failed to run
Invalid: beforeEach() may not be used in a describe block containing no tests.
7 |
8 | describe('a block', () => {
> 9 | beforeEach(() => {});
| ^
10 | });
11 |
12 | describe('another block with tests', () => {
at beforeEach (__tests__/hookInEmptyDescribe.test.js:9:3)
at Object.describe (__tests__/hookInEmptyDescribe.test.js:8:1)",
"summary": "Seed: <<REPLACED>>
Test Suites: 1 failed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /hookInEmptyDescribe.test.js/i.",
}
`;
exports[`hook in empty nested describe 1`] = `
Object {
"rest": "FAIL __tests__/hookInEmptyNestedDescribe.test.js
● Test suite failed to run
Invalid: beforeEach() may not be used in a describe block containing no tests.
7 |
8 | describe('a block', () => {
> 9 | beforeEach(() => {});
| ^
10 | describe('another block', () => {});
11 | });
12 |
at beforeEach (__tests__/hookInEmptyNestedDescribe.test.js:9:3)
at Object.describe (__tests__/hookInEmptyNestedDescribe.test.js:8:1)",
"summary": "Seed: <<REPLACED>>
Test Suites: 1 failed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /hookInEmptyNestedDescribe.test.js/i.",
}
`;
exports[`multiple hooks in empty describe 1`] = `
Object {
"rest": "FAIL __tests__/multipleHooksInEmptyDescribe.test.js
● Test suite failed to run
Invalid: beforeEach() may not be used in a describe block containing no tests.
7 |
8 | describe('a block', () => {
> 9 | beforeEach(() => {});
| ^
10 | afterEach(() => {});
11 | afterAll(() => {});
12 | beforeAll(() => {});
at beforeEach (__tests__/multipleHooksInEmptyDescribe.test.js:9:3)
at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)
● Test suite failed to run
Invalid: afterEach() may not be used in a describe block containing no tests.
8 | describe('a block', () => {
9 | beforeEach(() => {});
> 10 | afterEach(() => {});
| ^
11 | afterAll(() => {});
12 | beforeAll(() => {});
13 | });
at afterEach (__tests__/multipleHooksInEmptyDescribe.test.js:10:3)
at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)
● Test suite failed to run
Invalid: afterAll() may not be used in a describe block containing no tests.
9 | beforeEach(() => {});
10 | afterEach(() => {});
> 11 | afterAll(() => {});
| ^
12 | beforeAll(() => {});
13 | });
14 |
at afterAll (__tests__/multipleHooksInEmptyDescribe.test.js:11:3)
at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)
● Test suite failed to run
Invalid: beforeAll() may not be used in a describe block containing no tests.
10 | afterEach(() => {});
11 | afterAll(() => {});
> 12 | beforeAll(() => {});
| ^
13 | });
14 |
15 | describe('another block with tests', () => {
at beforeAll (__tests__/multipleHooksInEmptyDescribe.test.js:12:3)
at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)",
"summary": "Seed: <<REPLACED>>
Test Suites: 1 failed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /multipleHooksInEmptyDescribe.test.js/i.",
}
`;