Bug: react-test-renderer update
method does not rerender component with new props
#20561
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 17.0.1
Steps To Reproduce
Link to code example: https://github.com/joshuaellis/react-test-renderer-update-issue
The current behavior
@testing-library/react-hooks
rerender function usesreact-test-renderer
update
under the hood. The props are correctly passed toupdate
function but the hook does not re-render with the new props so the test fails.The expected behavior
the last two logs (in the image above) should say:
"using func func2"
"im func 2"
The text was updated successfully, but these errors were encountered: