-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shallow renderer and test utils bundles #9426
Commits on Apr 18, 2017
-
Added react-dom/test-utils target
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 02129cb - Browse repository at this point
Copy the full SHA 02129cbView commit details -
Removed level of indirection for checkPropTypes
Files now import directly from prop-types/checkPropTypes
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for a3e4d67 - Browse repository at this point
Copy the full SHA a3e4d67View commit details -
Updated Rollup bundle for test-utils
* Moved test-utils into react-dom package * Added test-utils to package.json 'files' list * Added ReactTestUtilsFBEntry module (though it doesn't really do anything at the moment) * Replaced ReactDOM references with react-dom to avoid duplicating code
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 85e338b - Browse repository at this point
Copy the full SHA 85e338bView commit details -
Cleaned up test-utils bundle slightly by removing unnecessary fb-spec…
…ific entry point. Throw explicit error if imported in prod mode
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for e9f542f - Browse repository at this point
Copy the full SHA e9f542fView commit details -
Initial pass at building a shallow renderer on top of react-test-rend…
…erer > Doesn't handle context. Doesn't handle updates. Doesn't properly handle top-level createElement comparisons.
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for b984bcf - Browse repository at this point
Copy the full SHA b984bcfView commit details -
Fixed top-level test comparison by wrapping output in ReactElement
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 3dddc26 - Browse repository at this point
Copy the full SHA 3dddc26View commit details -
Added context rendering support to shallow renderer
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 713ed38 - Browse repository at this point
Copy the full SHA 713ed38View commit details -
Brian Vaughn committed
Apr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 579e7c9 - Browse repository at this point
Copy the full SHA 579e7c9View commit details -
Don't run injections in stack ReactTestRenderer factory function
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for b14307b - Browse repository at this point
Copy the full SHA b14307bView commit details -
Disabled shallow rendering tests for stack since there is no stack-fr…
…iendly shallow renderer
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 23a196d - Browse repository at this point
Copy the full SHA 23a196dView commit details -
Brian Vaughn committed
Apr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for bd205a9 - Browse repository at this point
Copy the full SHA bd205a9View commit details -
Brian Vaughn committed
Apr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for b091278 - Browse repository at this point
Copy the full SHA b091278View commit details -
Tidying up the react-test-renderer/shallow bundle
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 631352d - Browse repository at this point
Copy the full SHA 631352dView commit details -
Fixed test-utils bundle not to include duplicate react-dom code
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 39d3b1e - Browse repository at this point
Copy the full SHA 39d3b1eView commit details -
Shallow renderer no longer inlines ReactTestRenderer
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 1ad9166 - Browse repository at this point
Copy the full SHA 1ad9166View commit details -
Added production mode error for shallow renderer
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 45fded4 - Browse repository at this point
Copy the full SHA 45fded4View commit details -
Added react-test-renderer stub for testing
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for ec069f4 - Browse repository at this point
Copy the full SHA ec069f4View commit details -
Tightened up check for ShallowRendererWrapper type
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 037bda9 - Browse repository at this point
Copy the full SHA 037bda9View commit details -
Explicit error if test renderer is used in production mode
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for c65a6d0 - Browse repository at this point
Copy the full SHA c65a6d0View commit details -
Reverted modifications to results.json
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for a6c8ed8 - Browse repository at this point
Copy the full SHA a6c8ed8View commit details -
Moved ReactTestUtils from src/test to src/renderers/dom/test
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for c76235b - Browse repository at this point
Copy the full SHA c76235bView commit details -
Added test to verify shallow renderer is shallow to ReactTestUtils-test
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for f4b4c36 - Browse repository at this point
Copy the full SHA f4b4c36View commit details -
New ReactShallowRenderer implementation
Replaced shallow renderer based on test renderer with a custom, isolated implementation that's stack and fiber compatible
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for e71493d - Browse repository at this point
Copy the full SHA e71493dView commit details -
Properly handle context when setState() is called
Handling an edge case discovered while running the new shallow renderer against www. Also added a new test case for this
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for e1d3ded - Browse repository at this point
Copy the full SHA e1d3dedView commit details -
Support for shouldComponentUpdate; added tests for lifecycle hooks
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 7db69a5 - Browse repository at this point
Copy the full SHA 7db69a5View commit details -
Shallow renderer properly tracks new state for componentWill* and sho…
…uldComponent* hooks
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 9537e94 - Browse repository at this point
Copy the full SHA 9537e94View commit details -
Shallow renderer passes props+context to functional component
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 4012acb - Browse repository at this point
Copy the full SHA 4012acbView commit details -
Trimmed some unnecessary paths from bundle
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for fe1ca9f - Browse repository at this point
Copy the full SHA fe1ca9fView commit details -
Udpate instance.props when sCU returns false
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 85213e9 - Browse repository at this point
Copy the full SHA 85213e9View commit details -
Shallow renderer updates based on Dan's PR feedback:
* No longer call the 'componentDidMount' lifecycle hook * Get 'ReactDebugCurrentFrame' from 'ReactGlobalSharedState' * Use more standard 'shouldConstruct' type check for class vs functional components * Don't pass 'prevContext' param to 'componentDidUpdate' Also update instance context and state if 'shouldComponentUpdate' returns false.
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for ac0cc8e - Browse repository at this point
Copy the full SHA ac0cc8eView commit details -
Explicitly set instance.updater after construction
Don't require subclass constructors to pass this along to super
Brian Vaughn committedApr 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 35ae167 - Browse repository at this point
Copy the full SHA 35ae167View commit details
Commits on Apr 19, 2017
-
Updated lifecycles tests and behavior to mirror 15.x shallow renderer
Brian Vaughn committedApr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for 4f15cba - Browse repository at this point
Copy the full SHA 4f15cbaView commit details -
Shallow renderer setState() supports updater function. Also converted…
… test vars to const/let
Brian Vaughn committedApr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for e8ef8fa - Browse repository at this point
Copy the full SHA e8ef8faView commit details -
Better handle setState() calls from cWM or cWRP
Brian Vaughn committedApr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for bf0583b - Browse repository at this point
Copy the full SHA bf0583bView commit details -
Shallow renderer preserves state for cloned element
Brian Vaughn committedApr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for fc1c6f9 - Browse repository at this point
Copy the full SHA fc1c6f9View commit details -
TestUtils use batchedUpdates from ReactDOM instead of loading separately
Brian Vaughn committedApr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for 50793d4 - Browse repository at this point
Copy the full SHA 50793d4View commit details -
Brian Vaughn committed
Apr 19, 2017 Configuration menu - View commit details
-
Copy full SHA for 5710088 - Browse repository at this point
Copy the full SHA 5710088View commit details