File tree Expand file tree Collapse file tree 4 files changed +499
-358
lines changed
Expand file tree Collapse file tree 4 files changed +499
-358
lines changed Original file line number Diff line number Diff line change 7676 "babel-plugin-transform-react-display-name" : " ^6.4.0" ,
7777 "babel-plugin-transform-react-jsx" : " ^6.4.0" ,
7878 "babel-register" : " ^6.3.13" ,
79- "codecov" : " ^1.0.1" ,
80- "cross-env" : " ^3.1.3" ,
79+ "codecov" : " ^2.2.0" ,
80+ "create-react-class" : " ^15.5.3" ,
81+ "cross-env" : " ^5.0.1" ,
8182 "es3ify" : " ^0.2.0" ,
8283 "eslint" : " ^3.3.1" ,
8384 "eslint-plugin-import" : " ^2.2.0" ,
8485 "eslint-plugin-react" : " ^6.1.1" ,
8586 "expect" : " ^1.8.0" ,
8687 "glob" : " ^7.1.1" ,
8788 "istanbul" : " ^0.4.4" ,
88- "jsdom" : " ^9.8.3 " ,
89+ "jsdom" : " ^11.0.0 " ,
8990 "mocha" : " ^3.2.0" ,
90- "nyc" : " ^10 .0.0 " ,
91+ "nyc" : " ^11 .0.2 " ,
9192 "react" : " ^15.5.4" ,
9293 "react-dom" : " ^15.5.4" ,
9394 "redux" : " ^3.0.0" ,
9495 "rimraf" : " ^2.3.4" ,
95- "rollup" : " ^0.41.6 " ,
96+ "rollup" : " ^0.43.0 " ,
9697 "rollup-plugin-babel" : " ^2.7.1" ,
9798 "rollup-plugin-commonjs" : " ^8.0.2" ,
9899 "rollup-plugin-node-resolve" : " ^3.0.0" ,
99100 "rollup-plugin-replace" : " ^1.1.1" ,
100- "rollup-plugin-uglify" : " ^1 .0.1"
101+ "rollup-plugin-uglify" : " ^2 .0.1"
101102 },
102103 "dependencies" : {
103- "create-react-class" : " ^15.5.3" ,
104104 "hoist-non-react-statics" : " ^1.0.3" ,
105105 "invariant" : " ^2.0.0" ,
106106 "lodash" : " ^4.2.0" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ if (env === 'production') {
3737 pure_getters : true ,
3838 unsafe : true ,
3939 unsafe_comps : true ,
40- screw_ie8 : true ,
4140 warnings : false
4241 }
4342 } )
Original file line number Diff line number Diff line change 1- import { jsdom } from 'jsdom'
1+ import { JSDOM } from 'jsdom'
22
3- global . document = jsdom ( '<!doctype html><html><body></body></html>' )
4- global . window = document . defaultView
5- global . navigator = global . window . navigator
3+ const { window } = new JSDOM ( '<!doctype html><html><body></body></html>' )
4+
5+ global . window = window
6+ global . document = window . document
7+ global . navigator = window . navigator
You can’t perform that action at this time.
0 commit comments