Skip to content

Commit

Permalink
feat(ffe-core-react): Upgrade to React 16
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
kwltrs committed Dec 15, 2017
1 parent 1447bae commit ef3a686
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 12 additions & 9 deletions packages/ffe-core-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,41 @@
"ffe"
],
"peerDependencies": {
"react": "^15.4.0"
"react": "^16.1.1"
},
"devDependencies": {
"babel-cli": "^6.23.0",
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.0",
"babel-jest": "^21.2.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-latest": "^6.22.0",
"babel-preset-react": "^6.24.1",
"babel-register": "^6.23.0",
"enzyme": "^2.7.1",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.0",
"eslint": "^3.17.1",
"eslint-config-ffe": "^6.0.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^3.0.2",
"eslint-plugin-react": "^6.10.0",
"jest": "^20.0.0",
"nsp": "^2.6.3",
"jest": "^21.2.1",
"nsp": "^3.1.0",
"onchange": "3.2.1",
"prop-types": "^15.5.9",
"react": "^15.4.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"react-test-renderer": "^15.5.4",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"react-test-renderer": "^16.2.0",
"rimraf": "^2.6.1"
},
"files": [
"lib",
"*.js"
],
"jest": {
"setupTestFrameworkScriptFile": "./setupEnzyme.js"
},
"main": "lib/index.js",
"author": "SpareBank 1",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions packages/ffe-core-react/setupEnzyme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

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

0 comments on commit ef3a686

Please sign in to comment.