Skip to content

Commit

Permalink
Update to Enzyme 3.x. (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal authored and nreese committed Dec 7, 2017
1 parent 0814150 commit 3da695d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"expose-loader": "0.7.3",
"extract-text-webpack-plugin": "3.0.1",
"file-loader": "1.1.4",
"focus-trap-react": "3.0.3",
"focus-trap-react": "3.0.5",
"font-awesome": "4.4.0",
"glob": "5.0.13",
"glob-all": "3.0.1",
Expand Down Expand Up @@ -168,7 +168,7 @@
"raw-loader": "0.5.1",
"react": "16.0.0",
"react-ace": "5.2.2",
"react-addons-test-utils": "15.6.0",
"react-addons-test-utils": "15.6.2",
"react-anything-sortable": "1.7.3",
"react-color": "2.11.7",
"react-dom": "16.0.0",
Expand All @@ -183,7 +183,7 @@
"react-select": "1.0.0-rc.5",
"react-sizeme": "2.3.4",
"react-sortable": "1.1.0",
"react-test-renderer": "15.6.1",
"react-test-renderer": "16.0.0",
"react-toggle": "4.0.2",
"reactcss": "1.2.3",
"redux": "3.7.2",
Expand Down Expand Up @@ -228,8 +228,9 @@
"chokidar": "1.6.0",
"chromedriver": "2.33.2",
"classnames": "2.2.5",
"enzyme": "2.9.1",
"enzyme-to-json": "1.4.5",
"enzyme": "3.2.0",
"enzyme-adapter-react-16": "1.1.0",
"enzyme-to-json": "3.1.4",
"eslint": "4.10.0",
"eslint-plugin-babel": "4.1.2",
"eslint-plugin-import": "2.8.0",
Expand Down Expand Up @@ -260,8 +261,8 @@
"husky": "0.8.1",
"image-diff": "1.6.0",
"istanbul-instrumenter-loader": "3.0.0",
"jest": "21.0.1",
"jest-cli": "21.0.1",
"jest": "21.2.1",
"jest-cli": "21.2.1",
"jsdom": "9.9.1",
"karma": "1.7.0",
"karma-chrome-launcher": "2.1.1",
Expand Down
1 change: 1 addition & 0 deletions src/dev/jest/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"setupFiles": [
"<rootDir>/src/dev/jest/setup/babel_polyfill.js",
"<rootDir>/src/dev/jest/setup/request_animation_frame_polyfill.js"
"<rootDir>/src/dev/jest/setup/enzyme.js"
],
"coverageDirectory": "<rootDir>/target/jest-coverage",
"coverageReporters": [
Expand Down
4 changes: 4 additions & 0 deletions src/dev/jest/setup/enzyme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });

0 comments on commit 3da695d

Please sign in to comment.