Skip to content

Commit

Permalink
chore(deps): update dependency enzyme to v3 (#2398)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency enzyme to v3.3.0
* chore: actually move to enzyme 3

Updates enzyme 3
Updates enzyme jest serializer
Adds a config file to minimize impact
Updates a snapshot that was actually wrong in the first placje
  • Loading branch information
renovate[bot] authored and bobylito committed Feb 15, 2018
1 parent 54f3a35 commit 54778ed
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 115 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"csso-cli": "1.1.0",
"dev-novel": "0.0.6",
"doctoc": "1.3.0",
"enzyme": "2.9.1",
"enzyme-to-json": "2.0.1",
"enzyme": "3.3.0",
"enzyme-to-json": "3.3.1",
"eslint": "4.12.0",
"eslint-config-algolia": "13.0.1",
"eslint-config-prettier": "2.9.0",
Expand Down Expand Up @@ -124,6 +124,7 @@
"algoliasearch": "3.24.9",
"algoliasearch-helper": "2.24.0",
"classnames": "2.2.5",
"enzyme-adapter-react-15": "false1.0.5",
"events": "1.1.0",
"hogan.js": "3.0.2",
"lodash": "4.17.4",
Expand All @@ -139,9 +140,7 @@
"<rootDir>/dist*",
"<rootDir>/functional-tests"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
"setupTestFrameworkScriptFile": "./scripts/jestInit.js"
},
"bundlesize": [
{
Expand Down
6 changes: 6 additions & 0 deletions scripts/jestInit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';
Enzyme.configure({ adapter: new Adapter() });

import { createSerializer } from 'enzyme-to-json';
expect.addSnapshotSerializer(createSerializer({ mode: 'deep' }));
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ exports[`RawRangeInput willReceiveProps expect to update the empty state from gi
placeholder={0}
step={1}
type="number"
value={20}
/>
</label>
<span
Expand All @@ -356,7 +355,6 @@ exports[`RawRangeInput willReceiveProps expect to update the empty state from gi
placeholder={500}
step={1}
type="number"
value={480}
/>
</label>
<button
Expand Down Expand Up @@ -444,7 +442,7 @@ exports[`RawRangeInput willReceiveProps expect to update the state from given pr
placeholder={0}
step={1}
type="number"
value={20}
value={40}
/>
</label>
<span
Expand All @@ -464,7 +462,7 @@ exports[`RawRangeInput willReceiveProps expect to update the state from given pr
placeholder={500}
step={1}
type="number"
value={480}
value={460}
/>
</label>
<button
Expand Down
Loading

0 comments on commit 54778ed

Please sign in to comment.