Skip to content

Commit d0ba9a2

Browse files
francoischalifourbobylito
authored andcommitted
chore(deps): update dependency jest to v23.4.2 (#3045)
* chore(deps): update dependency Jest to v23.4.2 Introduces method `.toHaveBeenNthCalledWith()` which is handy for our tests. * test(snapshots): update snapshots Jest now ignores `undefined` props in snapshots. See: jestjs/jest#6162
1 parent 30da254 commit d0ba9a2

7 files changed

Lines changed: 320 additions & 327 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"happypack": "4.0.1",
9999
"html-webpack-plugin": "2.30.1",
100100
"inquirer": "5.2.0",
101-
"jest": "22.4.2",
101+
"jest": "23.4.2",
102102
"jsdom-global": "3.0.2",
103103
"json": "9.0.6",
104104
"mkdirp": "0.5.1",

src/components/CurrentRefinedValues/__tests__/__snapshots__/CurrentRefinedValues-test.js.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,6 @@ exports[`CurrentRefinedValues options.refinements can be used with numeric filte
14911491
>
14921492
<a
14931493
className="link-class"
1494-
href={undefined}
14951494
onClick={[Function]}
14961495
>
14971496
<div
@@ -1508,7 +1507,6 @@ exports[`CurrentRefinedValues options.refinements can be used with numeric filte
15081507
>
15091508
<a
15101509
className="link-class"
1511-
href={undefined}
15121510
onClick={[Function]}
15131511
>
15141512
<div

src/components/PriceRanges/__tests__/__snapshots__/PriceRanges-test.js.snap

Lines changed: 16 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,35 @@
22

33
exports[`PriceRanges individual methods getForm should call the PriceRangesForm 1`] = `
44
<form
5-
className={undefined}
65
onSubmit={[Function]}
76
>
8-
<label
9-
className={undefined}
10-
>
11-
<span
12-
className={undefined}
13-
>
7+
<label>
8+
<span>
149
$
1510
1611
</span>
1712
<input
18-
className={undefined}
1913
onChange={[Function]}
2014
type="number"
2115
value=""
2216
/>
2317
</label>
24-
<span
25-
className={undefined}
26-
>
18+
<span>
2719
2820
2921
</span>
30-
<label
31-
className={undefined}
32-
>
33-
<span
34-
className={undefined}
35-
>
22+
<label>
23+
<span>
3624
$
3725
3826
</span>
3927
<input
40-
className={undefined}
4128
onChange={[Function]}
4229
type="number"
4330
value=""
4431
/>
4532
</label>
4633
<button
47-
className={undefined}
4834
type="submit"
4935
>
5036
hello
@@ -94,15 +80,11 @@ exports[`PriceRanges individual methods getItemFromFacetValue should display one
9480

9581
exports[`PriceRanges render should have the right number of items 1`] = `
9682
<div>
97-
<div
98-
className={undefined}
99-
>
83+
<div>
10084
<div
10185
className=""
10286
>
10387
<a
104-
className={undefined}
105-
href={undefined}
10688
onClick={[Function]}
10789
>
10890
<div
@@ -118,8 +100,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
118100
className=""
119101
>
120102
<a
121-
className={undefined}
122-
href={undefined}
123103
onClick={[Function]}
124104
>
125105
<div
@@ -135,8 +115,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
135115
className=""
136116
>
137117
<a
138-
className={undefined}
139-
href={undefined}
140118
onClick={[Function]}
141119
>
142120
<div
@@ -152,8 +130,6 @@ exports[`PriceRanges render should have the right number of items 1`] = `
152130
className=""
153131
>
154132
<a
155-
className={undefined}
156-
href={undefined}
157133
onClick={[Function]}
158134
>
159135
<div
@@ -167,47 +143,33 @@ exports[`PriceRanges render should have the right number of items 1`] = `
167143
</div>
168144
</div>
169145
<form
170-
className={undefined}
171146
onSubmit={[Function]}
172147
>
173-
<label
174-
className={undefined}
175-
>
176-
<span
177-
className={undefined}
178-
>
148+
<label>
149+
<span>
179150
180151
</span>
181152
<input
182-
className={undefined}
183153
onChange={[Function]}
184154
type="number"
185155
value=""
186156
/>
187157
</label>
188-
<span
189-
className={undefined}
190-
>
158+
<span>
191159
192160
193161
</span>
194-
<label
195-
className={undefined}
196-
>
197-
<span
198-
className={undefined}
199-
>
162+
<label>
163+
<span>
200164
201165
</span>
202166
<input
203-
className={undefined}
204167
onChange={[Function]}
205168
type="number"
206169
value=""
207170
/>
208171
</label>
209172
<button
210-
className={undefined}
211173
type="submit"
212174
/>
213175
</form>
@@ -223,8 +185,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
223185
className=""
224186
>
225187
<a
226-
className={undefined}
227-
href={undefined}
228188
onClick={[Function]}
229189
>
230190
<div
@@ -240,8 +200,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
240200
className=""
241201
>
242202
<a
243-
className={undefined}
244-
href={undefined}
245203
onClick={[Function]}
246204
>
247205
<div
@@ -257,8 +215,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
257215
className=""
258216
>
259217
<a
260-
className={undefined}
261-
href={undefined}
262218
onClick={[Function]}
263219
>
264220
<div
@@ -274,8 +230,6 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
274230
className=""
275231
>
276232
<a
277-
className={undefined}
278-
href={undefined}
279233
onClick={[Function]}
280234
>
281235
<div
@@ -289,47 +243,33 @@ exports[`PriceRanges render should wrap the output in a list CSS class 1`] = `
289243
</div>
290244
</div>
291245
<form
292-
className={undefined}
293246
onSubmit={[Function]}
294247
>
295-
<label
296-
className={undefined}
297-
>
298-
<span
299-
className={undefined}
300-
>
248+
<label>
249+
<span>
301250
302251
</span>
303252
<input
304-
className={undefined}
305253
onChange={[Function]}
306254
type="number"
307255
value=""
308256
/>
309257
</label>
310-
<span
311-
className={undefined}
312-
>
258+
<span>
313259
314260
315261
</span>
316-
<label
317-
className={undefined}
318-
>
319-
<span
320-
className={undefined}
321-
>
262+
<label>
263+
<span>
322264
323265
</span>
324266
<input
325-
className={undefined}
326267
onChange={[Function]}
327268
type="number"
328269
value=""
329270
/>
330271
</label>
331272
<button
332-
className={undefined}
333273
type="submit"
334274
/>
335275
</form>

src/components/__tests__/__snapshots__/MenuSelect-test.js.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
1515
className="ais-body"
1616
>
1717
<select
18-
className={undefined}
1918
onChange={[Function]}
2019
value=""
2120
>
2221
<option
23-
className={undefined}
2422
value=""
2523
>
2624
<div
@@ -32,7 +30,6 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
3230
/>
3331
</option>
3432
<option
35-
className={undefined}
3633
value="foo"
3734
>
3835
<div
@@ -44,7 +41,6 @@ exports[`MenuSelect should render <MenuSelect /> with items 1`] = `
4441
/>
4542
</option>
4643
<option
47-
className={undefined}
4844
value="bar"
4945
>
5046
<div

src/decorators/__tests__/__snapshots__/headerFooter-test.js.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ exports[`headerFooter collapsible when collapsed 1`] = `
55
className="ais-root root ais-root__collapsible ais-root__collapsed"
66
>
77
<Unknown
8-
data={undefined}
98
rootProps={
109
Object {
1110
"className": "ais-header",
@@ -47,7 +46,6 @@ exports[`headerFooter collapsible when collapsed 1`] = `
4746
/>
4847
</div>
4948
<Unknown
50-
data={undefined}
5149
rootProps={
5250
Object {
5351
"className": "ais-footer",
@@ -71,7 +69,6 @@ exports[`headerFooter collapsible when true 1`] = `
7169
className="ais-root root ais-root__collapsible"
7270
>
7371
<Unknown
74-
data={undefined}
7572
rootProps={
7673
Object {
7774
"className": "ais-header",
@@ -109,7 +106,6 @@ exports[`headerFooter collapsible when true 1`] = `
109106
/>
110107
</div>
111108
<Unknown
112-
data={undefined}
113109
rootProps={
114110
Object {
115111
"className": "ais-footer",
@@ -153,7 +149,6 @@ exports[`headerFooter should add a footer if such a template is passed 1`] = `
153149
/>
154150
</div>
155151
<Unknown
156-
data={undefined}
157152
rootProps={
158153
Object {
159154
"className": "ais-footer",
@@ -176,7 +171,6 @@ exports[`headerFooter should add a header if such a template is passed 1`] = `
176171
className="ais-root root"
177172
>
178173
<Unknown
179-
data={undefined}
180174
rootProps={
181175
Object {
182176
"className": "ais-header",

0 commit comments

Comments
 (0)