File tree Expand file tree Collapse file tree 5 files changed +21
-9
lines changed
packages/react-test-renderer Expand file tree Collapse file tree 5 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 2626 " PATENTS" ,
2727 " README.md" ,
2828 " index.js" ,
29+ " shallow.js" ,
2930 " cjs/"
3031 ]
3132}
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = require ( './cjs/react-test-renderer-shallow.development' ) ;
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ const bundles = [
395395 sourceMap : false ,
396396 } ,
397397 entry : 'src/renderers/testing/ReactShallowRenderer' ,
398- externals : [ 'react-dom' ] ,
398+ externals : [ 'react-dom' , 'prop-types/checkPropTypes' ] ,
399399 fbEntry : 'src/fb/ReactShallowRendererFBEntry' ,
400400 hasteName : 'ReactShallowRenderer' ,
401401 isRenderer : true ,
Original file line number Diff line number Diff line change 11{
2- "branch" : " react-dom-test-utils" ,
2+ "branch" : " react-dom-test-utils-shallow-renderer " ,
33 "bundleSizes" : {
44 "react.development.js (UMD_DEV)" : {
55 "size" : 121412 ,
126126 "gzip" : 55698
127127 },
128128 "ReactTestRendererStack-dev.js (FB_DEV)" : {
129- "size" : 151479 ,
130- "gzip" : 34749
129+ "size" : 151685 ,
130+ "gzip" : 34794
131131 },
132132 "react-noop-renderer.development.js (NODE_DEV)" : {
133133 "size" : 254092 ,
142142 "gzip" : 122093
143143 },
144144 "react-dom-test-utils.development.js (NODE_DEV)" : {
145- "size" : 78532 ,
146- "gzip" : 19766
145+ "size" : 70094 ,
146+ "gzip" : 17717
147147 },
148148 "ReactTestUtils-dev.js (FB_DEV)" : {
149- "size" : 528 ,
150- "gzip" : 328
149+ "size" : 69835 ,
150+ "gzip" : 17705
151+ },
152+ "react-test-renderer-shallow.development.js (NODE_DEV)" : {
153+ "size" : 411218 ,
154+ "gzip" : 88978
155+ },
156+ "ReactShallowRenderer-dev.js (FB_DEV)" : {
157+ "size" : 405 ,
158+ "gzip" : 276
151159 }
152160 }
153161}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ var ReactControlledComponent = require('ReactControlledComponent');
2020var ReactDOM = require ( 'react-dom' ) ;
2121var ReactFiberTreeReflection = require ( 'ReactFiberTreeReflection' ) ;
2222var ReactInstanceMap = require ( 'ReactInstanceMap' ) ;
23- var ReactShallowRenderer = require ( 'ReactShallowRenderer ' ) ; // TODO (bvaughn) Remove this import before 16.0.0
23+ var ReactShallowRenderer = require ( 'react-test-renderer/shallow ' ) ; // TODO (bvaughn) Remove this import before 16.0.0
2424var ReactTypeOfWork = require ( 'ReactTypeOfWork' ) ;
2525var ReactGenericBatching = require ( 'ReactGenericBatching' ) ;
2626var SyntheticEvent = require ( 'SyntheticEvent' ) ;
You can’t perform that action at this time.
0 commit comments