File tree 4 files changed +18
-7
lines changed
4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 26
26
"babelify" : " ^7.3.0" ,
27
27
"brfs" : " ^1.4.3" ,
28
28
"chai" : " ^3.5.0" ,
29
- "enzyme" : " ^2.4.1" ,
29
+ "enzyme" : " ^3.1.0" ,
30
+ "enzyme-adapter-react-16" : " ^1.0.2" ,
30
31
"eslint" : " ^1.6.0" ,
31
32
"eslint-plugin-react" : " ^3.5.1" ,
32
33
"gulp" : " ^3.9.0" ,
33
34
"jest-cli" : " ^14.1.0" ,
34
35
"jsdom" : " ^9.8.3" ,
35
36
"lodash" : " ^4.14.2" ,
36
37
"mocha" : " ^3.2.0" ,
37
- "react" : " ^0.14 || ^15.0.0-rc || ^15.0" ,
38
- "react-addons-test-utils" : " ^15.3.1" ,
38
+ "react" : " ^0.14 || ^15.0.0-rc || ^15.0 || ^16.0" ,
39
39
"react-component-gulp-tasks" : " git+https://github.com/gor181/react-component-gulp-tasks.git" ,
40
- "react-dom" : " ^0.14 || ^15.0.0-rc || ^15.0" ,
40
+ "react-dom" : " ^0.14 || ^15.0.0-rc || ^15.0 || ^16.0 " ,
41
41
"react-notification-system" : " ^0.2.7" ,
42
42
"react-redux" : " ^4.4.5" ,
43
43
"redux" : " ^3.5.2" ,
44
44
"sinon" : " ^1.17.6"
45
45
},
46
46
"dependencies" : {
47
- "prop-types" : " ^15.5.8 " ,
47
+ "prop-types" : " ^15.6.0 " ,
48
48
"react-notification-system" : " ^0.2.x"
49
49
},
50
50
"peerDependencies" : {
51
- "react" : " ^0.14 || ^15.0.0-rc || ^15.0" ,
52
- "react-dom" : " ^0.14 || ^15.0.0-rc || ^15.0"
51
+ "react" : " ^0.14 || ^15.0.0-rc || ^15.0 || ^16.0 " ,
52
+ "react-dom" : " ^0.14 || ^15.0.0-rc || ^15.0 || ^16.0 "
53
53
},
54
54
"browserify-shim" : {
55
55
"react" : " global:React"
Original file line number Diff line number Diff line change 1
1
--compilers js:babel-register
2
2
--require test/utils/dom.js
3
+ --require test/utils/enzyme.js
3
4
--reporter spec
Original file line number Diff line number Diff line change
1
+ import './rafPolyfill' ;
2
+ import { configure } from 'enzyme' ;
3
+ import Adapter from 'enzyme-adapter-react-16' ;
4
+
5
+ configure ( { adapter : new Adapter ( ) } ) ;
Original file line number Diff line number Diff line change
1
+ const raf = global . requestAnimationFrame = ( cb ) => {
2
+ setTimeout ( cb , 0 ) ;
3
+ } ;
4
+
5
+ export default raf ;
You can’t perform that action at this time.
0 commit comments