Skip to content

Commit

Permalink
Added React 16 to peerDependencies and upgrade enzyme (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl authored and gor181 committed Oct 31, 2017
1 parent e3368b2 commit d3b53e5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -26,30 +26,30 @@
"babelify": "^7.3.0",
"brfs": "^1.4.3",
"chai": "^3.5.0",
"enzyme": "^2.4.1",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.2",
"eslint": "^1.6.0",
"eslint-plugin-react": "^3.5.1",
"gulp": "^3.9.0",
"jest-cli": "^14.1.0",
"jsdom": "^9.8.3",
"lodash": "^4.14.2",
"mocha": "^3.2.0",
"react": "^0.14 || ^15.0.0-rc || ^15.0",
"react-addons-test-utils": "^15.3.1",
"react": "^0.14 || ^15.0.0-rc || ^15.0 || ^16.0",
"react-component-gulp-tasks": "git+https://github.com/gor181/react-component-gulp-tasks.git",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0 || ^16.0",
"react-notification-system": "^0.2.7",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"sinon": "^1.17.6"
},
"dependencies": {
"prop-types": "^15.5.8",
"prop-types": "^15.6.0",
"react-notification-system": "^0.2.x"
},
"peerDependencies": {
"react": "^0.14 || ^15.0.0-rc || ^15.0",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0"
"react": "^0.14 || ^15.0.0-rc || ^15.0 || ^16.0",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0 || ^16.0"
},
"browserify-shim": {
"react": "global:React"
Expand Down
1 change: 1 addition & 0 deletions test/mocha.opts
@@ -1,3 +1,4 @@
--compilers js:babel-register
--require test/utils/dom.js
--require test/utils/enzyme.js
--reporter spec
5 changes: 5 additions & 0 deletions test/utils/enzyme.js
@@ -0,0 +1,5 @@
import './rafPolyfill';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });
5 changes: 5 additions & 0 deletions test/utils/rafPolyfill.js
@@ -0,0 +1,5 @@
const raf = global.requestAnimationFrame = (cb) => {
setTimeout(cb, 0);
};

export default raf;

0 comments on commit d3b53e5

Please sign in to comment.