File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 40
40
"babel-eslint" : " ^3.1.15" ,
41
41
"babel-loader" : " ^5.1.4" ,
42
42
"babel-plugin-rewire" : " ^0.1.22" ,
43
+ "react-addons-test-utils" : " ^0.14.0 || ^15.0.0" ,
43
44
"rimraf" : " ^2.3.4" ,
44
45
"semantic-release" : " ^4.0.0" ,
45
46
"standard" : " ^5.0.0-2" ,
49
50
"webpack-dev-server" : " ^1.8.2"
50
51
},
51
52
"peerDependencies" : {
52
- "react" : " >=0.13.2 || ^0.14.0-rc1 || ^15.0.0-rc "
53
+ "react" : " ^0.14.0 || ^15.0.0"
53
54
},
54
55
"dependencies" : {
55
56
"error-stack-parser" : " ^1.2.0" ,
Original file line number Diff line number Diff line change 1
- import React from 'react/addons '
2
- const TestUtils = React . addons . TestUtils
1
+ import React from 'react'
2
+ const TestUtils = require ( 'react- addons-test-utils' ) ;
3
3
4
4
export const createComponent = ( component , props , ...children ) => {
5
5
const shallowRenderer = TestUtils . createRenderer ( )
You can’t perform that action at this time.
0 commit comments