RNTL v13 & v14 roadmap #1698
Replies: 3 comments 8 replies
-
This sounds like a good plan! Regarding V13, you already did pretty much everything right? Besides reviewing and merging #1607 and waiting for RN 0.77 there is nothing else to do, correct? |
Beta Was this translation helpful? Give feedback.
-
Is this supposed to be compatible with react 19 and react-test-renderer@19? I'm using react-native@0.78.0-nightly-20250108-ec72af403, which is the first one that lists react 19 as a peerDep, and I'm getting an error when using renderHook:
This works when using RN@77 and react@18.3 and @testing-library/react-native@13 |
Beta Was this translation helpful? Give feedback.
-
I wanted to share some details about future plans for the React Native Testing Library, especially in the context of the React Test Renderer (RTR) being deprecated. We plan to replace RTR with a new test renderer, for which I’ve already built a prototype that validated this approach.
Here is the RNTL major release roadmap:
*ByA11State
,*ByA11Queries
, etc.)There is no urgency in replacing RTR as it’s still present in React 19, although with some deprecation warnings.
The new test renderer will operate only on host components. In general, this is the desired state, as we already limit RNTL to this. One area where this will impact users is the ability to directly call event handlers on composite components using the Fire Event API. Current RNTL allows this for legacy test reasons, but it will no longer be possible with the new renderer. We will provide an easy migration to v14 for common events like
press
though.Beta Was this translation helpful? Give feedback.
All reactions