Skip to content

Commit 7796c20

Browse files
chore: Bump enzyme{,-adapter-react-16} to 3.5 / 1.3 (#9542)
Fragment's disappearing (or being renamed) is likely due to enzymejs/enzyme#1733
1 parent b794428 commit 7796c20

File tree

11 files changed

+516
-418
lines changed

11 files changed

+516
-418
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@
155155
"babel-eslint": "7.2.3",
156156
"babel-jest": "22.1.0",
157157
"chai": "3.4.1",
158-
"enzyme": "3.2.0",
159-
"enzyme-adapter-react-16": "npm:enzyme-react-adapter-future",
158+
"enzyme": "3.5.0",
159+
"enzyme-adapter-react-16": "1.3.0",
160160
"enzyme-to-json": "3.3.1",
161161
"eslint": "4.4.1",
162162
"eslint-config-prettier": "^2.3.0",

tests/js/spec/components/__snapshots__/confirm.spec.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Confirm renders 1`] = `
4-
<React.Fragment>
4+
<Fragment>
55
<button
66
onClick={[Function]}
77
>
@@ -66,5 +66,5 @@ exports[`Confirm renders 1`] = `
6666
</Button>
6767
</div>
6868
</Modal>
69-
</React.Fragment>
69+
</Fragment>
7070
`;

tests/js/spec/components/__snapshots__/eventOrGroupExtraDetails.spec.jsx.snap

Lines changed: 35 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ exports[`EventOrGroupExtraDetails details when mentioned 1`] = `
1515
align="center"
1616
mr={2}
1717
>
18-
<React.Fragment>
19-
<GroupExtraIcon
20-
className="icon icon-clock"
21-
/>
22-
<TimeSince
23-
date="2017-07-25T22:56:12Z"
24-
suffix="ago"
25-
/>
26-
</React.Fragment>
18+
<GroupExtraIcon
19+
className="icon icon-clock"
20+
/>
21+
<TimeSince
22+
date="2017-07-25T22:56:12Z"
23+
suffix="ago"
24+
/>
2725
<span
2826
className="hidden-xs hidden-sm"
2927
>
@@ -116,15 +114,13 @@ exports[`EventOrGroupExtraDetails renders all details 1`] = `
116114
align="center"
117115
mr={2}
118116
>
119-
<React.Fragment>
120-
<GroupExtraIcon
121-
className="icon icon-clock"
122-
/>
123-
<TimeSince
124-
date="2017-07-25T22:56:12Z"
125-
suffix="ago"
126-
/>
127-
</React.Fragment>
117+
<GroupExtraIcon
118+
className="icon icon-clock"
119+
/>
120+
<TimeSince
121+
date="2017-07-25T22:56:12Z"
122+
suffix="ago"
123+
/>
128124
<span
129125
className="hidden-xs hidden-sm"
130126
>
@@ -213,15 +209,13 @@ exports[`EventOrGroupExtraDetails renders assignee and status 1`] = `
213209
align="center"
214210
mr={2}
215211
>
216-
<React.Fragment>
217-
<GroupExtraIcon
218-
className="icon icon-clock"
219-
/>
220-
<TimeSince
221-
date="2017-07-25T22:56:12Z"
222-
suffix="ago"
223-
/>
224-
</React.Fragment>
212+
<GroupExtraIcon
213+
className="icon icon-clock"
214+
/>
215+
<TimeSince
216+
date="2017-07-25T22:56:12Z"
217+
suffix="ago"
218+
/>
225219
<span
226220
className="hidden-xs hidden-sm"
227221
>
@@ -319,15 +313,13 @@ exports[`EventOrGroupExtraDetails renders last and first seen 1`] = `
319313
align="center"
320314
mr={2}
321315
>
322-
<React.Fragment>
323-
<GroupExtraIcon
324-
className="icon icon-clock"
325-
/>
326-
<TimeSince
327-
date="2017-07-25T22:56:12Z"
328-
suffix="ago"
329-
/>
330-
</React.Fragment>
316+
<GroupExtraIcon
317+
className="icon icon-clock"
318+
/>
319+
<TimeSince
320+
date="2017-07-25T22:56:12Z"
321+
suffix="ago"
322+
/>
331323
<span
332324
className="hidden-xs hidden-sm"
333325
>
@@ -369,15 +361,13 @@ exports[`EventOrGroupExtraDetails renders only last seen 1`] = `
369361
align="center"
370362
mr={2}
371363
>
372-
<React.Fragment>
373-
<GroupExtraIcon
374-
className="icon icon-clock"
375-
/>
376-
<TimeSince
377-
date="2017-07-25T22:56:12Z"
378-
suffix="ago"
379-
/>
380-
</React.Fragment>
364+
<GroupExtraIcon
365+
className="icon icon-clock"
366+
/>
367+
<TimeSince
368+
date="2017-07-25T22:56:12Z"
369+
suffix="ago"
370+
/>
381371
</Flex>
382372
<GroupExtraCommentsAndLogger />
383373
</GroupExtra>

tests/js/spec/components/__snapshots__/settingsLayout.spec.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`SettingsLayout renders 1`] = `
4-
<React.Fragment>
4+
<Fragment>
55
<SettingsHeader>
66
<SettingsSubheader>
77
<Container>
@@ -33,5 +33,5 @@ exports[`SettingsLayout renders 1`] = `
3333
</Container>
3434
</ContentContainerWrapper>
3535
<Footer />
36-
</React.Fragment>
36+
</Fragment>
3737
`;

tests/js/spec/components/forms/__snapshots__/radioBooleanField.spec.jsx.snap

Lines changed: 86 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -10,54 +10,52 @@ exports[`RadioBooleanField render() renders with form context 1`] = `
1010
<div
1111
className="control-group radio-boolean"
1212
>
13-
<React.Fragment>
14-
<div
15-
className="radio"
16-
key="yes"
17-
>
18-
<label
19-
style={
20-
Object {
21-
"fontWeight": "normal",
22-
}
13+
<div
14+
className="radio"
15+
key="yes"
16+
>
17+
<label
18+
style={
19+
Object {
20+
"fontWeight": "normal",
2321
}
24-
>
25-
<input
26-
checked={true}
27-
disabled={false}
28-
name="fieldName"
29-
onChange={[Function]}
30-
type="radio"
31-
value="true"
32-
/>
33-
34-
Yes
35-
</label>
36-
</div>
37-
<div
38-
className="radio"
39-
key="no"
22+
}
4023
>
41-
<label
42-
style={
43-
Object {
44-
"fontWeight": "normal",
45-
}
24+
<input
25+
checked={true}
26+
disabled={false}
27+
name="fieldName"
28+
onChange={[Function]}
29+
type="radio"
30+
value="true"
31+
/>
32+
33+
Yes
34+
</label>
35+
</div>
36+
<div
37+
className="radio"
38+
key="no"
39+
>
40+
<label
41+
style={
42+
Object {
43+
"fontWeight": "normal",
4644
}
47-
>
48-
<input
49-
checked={false}
50-
disabled={false}
51-
name="fieldName"
52-
onChange={[Function]}
53-
type="radio"
54-
value="false"
55-
/>
56-
57-
No
58-
</label>
59-
</div>
60-
</React.Fragment>
45+
}
46+
>
47+
<input
48+
checked={false}
49+
disabled={false}
50+
name="fieldName"
51+
onChange={[Function]}
52+
type="radio"
53+
value="false"
54+
/>
55+
56+
No
57+
</label>
58+
</div>
6159
</div>
6260
</div>
6361
</div>
@@ -73,54 +71,52 @@ exports[`RadioBooleanField render() renders without form context 1`] = `
7371
<div
7472
className="control-group radio-boolean"
7573
>
76-
<React.Fragment>
77-
<div
78-
className="radio"
79-
key="yes"
80-
>
81-
<label
82-
style={
83-
Object {
84-
"fontWeight": "normal",
85-
}
74+
<div
75+
className="radio"
76+
key="yes"
77+
>
78+
<label
79+
style={
80+
Object {
81+
"fontWeight": "normal",
8682
}
87-
>
88-
<input
89-
checked={false}
90-
disabled={false}
91-
name="fieldName"
92-
onChange={[Function]}
93-
type="radio"
94-
value="true"
95-
/>
96-
97-
Yes
98-
</label>
99-
</div>
100-
<div
101-
className="radio"
102-
key="no"
83+
}
10384
>
104-
<label
105-
style={
106-
Object {
107-
"fontWeight": "normal",
108-
}
85+
<input
86+
checked={false}
87+
disabled={false}
88+
name="fieldName"
89+
onChange={[Function]}
90+
type="radio"
91+
value="true"
92+
/>
93+
94+
Yes
95+
</label>
96+
</div>
97+
<div
98+
className="radio"
99+
key="no"
100+
>
101+
<label
102+
style={
103+
Object {
104+
"fontWeight": "normal",
109105
}
110-
>
111-
<input
112-
checked={false}
113-
disabled={false}
114-
name="fieldName"
115-
onChange={[Function]}
116-
type="radio"
117-
value="false"
118-
/>
119-
120-
No
121-
</label>
122-
</div>
123-
</React.Fragment>
106+
}
107+
>
108+
<input
109+
checked={false}
110+
disabled={false}
111+
name="fieldName"
112+
onChange={[Function]}
113+
type="radio"
114+
value="false"
115+
/>
116+
117+
No
118+
</label>
119+
</div>
124120
</div>
125121
</div>
126122
</div>

tests/js/spec/components/modals/__snapshots__/integrationDetailsModal.spec.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`IntegrationDetailsModal renders simple integration 1`] = `
4-
<React.Fragment>
4+
<Fragment>
55
<Flex
66
align="center"
77
mb={2}
@@ -119,5 +119,5 @@ exports[`IntegrationDetailsModal renders simple integration 1`] = `
119119
size="small"
120120
/>
121121
</div>
122-
</React.Fragment>
122+
</Fragment>
123123
`;

0 commit comments

Comments
 (0)