Upgrade react-shallow-renderer to support react 18 #24442
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To a minimum version that supports react 18
Summary
react-shallow-renderer
was updated to support react 18 a couple weeks ago, but minimum version stayed the same (so yarn complains about wrong react version peer dependency). I had to useresolutions
to pin down a16.15.0
in my codebase, but this doesn't seem ideal. I don't know how its supposed to be and I didn't find any issues or PR in regards to that problem, so here it isHow did you test this change?
Run
yarn test
andyarn test --prod
Prod failed one specific suite with
But they failing the same for me in the latest
main
so I hope it's an env issue