Skip to content

Commit

Permalink
chore: update react dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
iRath96 committed Sep 27, 2017
1 parent ade0c3b commit 3f2fa95
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 102 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"electron-builder": "^19.8.0",
"electron-builder-http": "^19.15.0",
"electron-devtools-installer": "^2.0.1",
"enzyme": "^2.9.1",
"enzyme": "^3.0.0",
"express": "^4.14.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
Expand All @@ -144,8 +144,9 @@
"jest": "^21.0.1",
"json-loader": "^0.5.4",
"node-sass": "^4.1.1",
"react-addons-test-utils": "^15.4.1",
"react-hot-loader": "^3.0.0-beta.6",
"react-test-renderer": "^16.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"redux-logger": "^3.0.6",
"sass-loader": "^6.0.6",
"sinon": "^4.0.0",
Expand All @@ -165,8 +166,8 @@
"electron-debug": "^1.1.0",
"font-awesome": "^4.7.0",
"history": "^4.6.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^5.0.1",
"react-router": "^4.1.1",
"react-router-dom": "^4.1.1",
Expand Down
2 changes: 2 additions & 0 deletions test/components/Counter.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '../utils/enzymeConfig';

import { spy } from 'sinon';
import * as React from 'react';
import { shallow } from 'enzyme';
Expand Down
2 changes: 2 additions & 0 deletions test/containers/CounterPage.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '../utils/enzymeConfig';

import * as React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
Expand Down
4 changes: 4 additions & 0 deletions test/utils/enzymeConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { configure } = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');

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

0 comments on commit 3f2fa95

Please sign in to comment.