chore(deps): update dependency @testing-library/react-native to v14.0.0-rc.0#956
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @testing-library/react-native to v14.0.0-rc.0#956renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
1686ac1 to
47ec429
Compare
47ec429 to
c031a48
Compare
c031a48 to
899508e
Compare
899508e to
db3b865
Compare
db3b865 to
47ec360
Compare
006fbb7 to
81e7230
Compare
9afb1f0 to
5143081
Compare
2513790 to
2e4cb3c
Compare
2e4cb3c to
0d357e2
Compare
0d357e2 to
9efdf26
Compare
9efdf26 to
da94922
Compare
94676e7 to
c999f9d
Compare
c999f9d to
f8852fa
Compare
f8852fa to
3e3aec1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
v14.0.0-alpha.1→14.0.0-rc.0Release Notes
callstack/react-native-testing-library (@testing-library/react-native)
v14.0.0-rc.0Compare Source
Migration guide
See the Migration to 14.x guide for
step-by-step upgrade instructions, codemods, and before/after examples.
Breaking changes
^22.13.0 || >=24.Test Renderer.
that matches your React 19 minor version.
render()now returnsPromise<RenderResult>.renderHook()now returnsPromise<RenderHookResult>.fireEvent()and its helpers now returnPromise<void>.act()now always returns a Promise and should always be awaited.renderAsync,renderHookAsync, andfireEventAsyncAPIs. Userender,renderHook, andfireEventinstead.updatealias. Usererenderinstead.getQueriesForElementalias. Usewithininstead.UNSAFE_root. Usecontainerfor the pseudo-element container orrootforthe first rendered host element.
UNSAFE_*queries:UNSAFE_getAllByTypeUNSAFE_getByTypeUNSAFE_getAllByPropsUNSAFE_getByPropsconcurrentRootrender and configuration option. Concurrent rendering isalways enabled in v14.
createNodeMockrender option, which is not supported by the new Test Rendererintegration.
unstable_validateStringsRenderedWithinTextrender option. Text stringvalidation is now always enabled.
Notable changes
containerAPI as a safe pseudo-element container, aligned with ReactTesting Library semantics.
components are no longer visible through the test tree.
TestInstancefrom Test Renderer instead ofReactTestInstancefrom React Test Renderer.as
display: 'none', so visibility queries and matchers behave closer to runtime behavior.fireEvent.press()andfireEvent.scroll()now pass default synthetic native event objectsto handlers and deep-merge any event props supplied by the test.
TextInputplaceholder handling, child accessible name concatenation, and strictergetByRole(..., { name })matching.configure,render,renderHook, anduserEvent.setupnow warn when unknown options arepassed, helping catch stale or misspelled options during migration.
<Text>components now throw, matchingReact Native runtime behavior.
Test Renderer versions
Install the Test Renderer version that matches your React 19 minor version:
19.2test-renderer@1.219.1test-renderer@1.119.0test-renderer@1.0Older Test Renderer lines may not support newer React 19 features in tests. Newer Test
Renderer lines can produce peer dependency warnings, or an install error with
npm. See theTest Renderer React 19 compatibility lines
for the latest recommendations.
Codemods
Two codemods are available to automate the most common v14 upgrade work:
rntl-v14-update-depsupdates dependencies by removing React Test Renderer packages,adding Test Renderer, and updating React Native Testing Library.
rntl-v14-async-functionsupdates test code for asyncrender,renderHook,fireEvent,act,rerender, andunmountusage.Full changelog
See the full GitHub comparison:
v14.0.0-beta.1Compare Source
✨ Features
computeAccessibleNameupdates (#1879) (d47cd70)📚 Documentation
v14.0.0-beta.0Compare Source
14.0.0-beta.0 (2026-01-20)
What's new
React 19 and React Native 0.78+
Async APIs
The main APIs are now async to support React 19's async rendering (
Suspense,use()):render,renderHook,fireEvent, andactreturn Promises and must be awaited.New renderer
react-test-rendererwith Test Renderer.HostElementreplacesReactTestInstance).containerAPIscreen.containeris now safe to use.Breaking changes
update(usererender),getQueriesForElement(usewithin),UNSAFE_root(usecontainer), andconcurrentRootoption.UNSAFE_getAllByType,UNSAFE_getByType,UNSAFE_getAllByProps, andUNSAFE_getByProps. Use standard queries likegetByRole.<Text>component. Theunstable_validateStringsRenderedWithinTextoption has been removed; validation is always on.Migration
Use the codemods to upgrade:
Update dependencies:
npx codemod@latest rntl-v14-update-deps --target . npm installMigrate to async:
See the v14 Migration Guide for details.
Full Changelog
v14.0.0-alpha.6Compare Source
14.0.0-alpha.6 (2026-01-09)
What's Changed
updateandgetQueriesForElementby @mdjastrzebski in #1856rendertests by @mdjastrzebski in #1859Full Changelog: callstack/react-native-testing-library@v14.0.0-alpha.5...v14.0.0-alpha.6
v14.0.0-alpha.5Compare Source
14.0.0-alpha.5 (2026-01-06)
renderAsync=>render,render=>unsafe_renderSyncrenderHookAsync=>renderHook,renderHook=>unsafe_renderHookSyncfireEventAsync=>fireEvent,fireEvent=>unsafe_fireEventSyncactAsync=>act,act=>unsafe_actv14.0.0-alpha.4Compare Source
14.0.0-alpha.4 (2026-01-04)
renderHookasync by defaultv14.0.0-alpha.3Compare Source
14.0.0-alpha.3 (2026-01-02)
toJSONoutputv14.0.0-alpha.2Compare Source
14.0.0-alpha.2 (2026-01-02)
v14 is back:
fireEventsupport with newunstable_fiberapi from UTRConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.