Skip to content

[Fix] shallow/mount: renderProp: avoid warning when renderProp function returns null#2076

Merged
ljharb merged 1 commit intoenzymejs:masterfrom
bscharm:master
Mar 31, 2019
Merged

[Fix] shallow/mount: renderProp: avoid warning when renderProp function returns null#2076
ljharb merged 1 commit intoenzymejs:masterfrom
bscharm:master

Conversation

@bscharm
Copy link
Copy Markdown
Contributor

@bscharm bscharm commented Mar 30, 2019

Fixes #2059

Copy link
Copy Markdown
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Expanded your tests to ensure it throws with undefined, and used explicitNull from airbnb-prop-types.

@ljharb ljharb force-pushed the master branch 2 times, most recently from 18a4fab to 6ad2165 Compare March 31, 2019 21:06
@ljharb ljharb merged commit 6ad2165 into enzymejs:master Mar 31, 2019
ljharb added a commit that referenced this pull request Apr 6, 2019
 - [new] `Utils` add `findElement`, `getNodeFromRootFinder`, `wrapWithWrappingComponent`, `getWrappingComponentMountRenderer`; add `RootFinder` (#1966)
 - [new] add `getDerivedStateFromError` support (#2036)
 - [fix] `shallow`/`mount`: `renderProp`: avoid warning when render prop returns `null` (#2076)
 - [build] include source maps
 - [deps] update `eslint`
 - [dev deps] update `eslint`, `semver`, `rimraf`, `react-is`, `html-element-map`, `chai`, `eslint-plugin-mocha`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants