chore(deps): update dependency @testing-library/react-native to v14 - #313
chore(deps): update dependency @testing-library/react-native to v14#313smartway-bot[bot] wants to merge 1 commit into
Conversation
7805feb to
7effc27
Compare
7effc27 to
c355b9d
Compare
c2b8e7f to
f7465d4
Compare
3eab505 to
8451dad
Compare
8451dad to
27545ab
Compare
27545ab to
e4cde38
Compare
e4cde38 to
c7b9990
Compare
|
📝 WalkthroughWalkthroughThe PR updates the ChangesTesting Library Version Bump
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This PR contains the following updates:
^12.4.3->^14.0.0Release Notes
callstack/react-native-testing-library (@testing-library/react-native)
v14.0.1Compare Source
🐛 Bug Fixes
selectionin TextInputchangeevent (#1919) (e819f77)📚 Documentation
New Contributors
Full Changelog: callstack/react-native-testing-library@v14.0.0...v14.0.1
v14.0.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:
v13.3.3Compare Source
🐛 Bug Fixes
cleanupAsync(#1817) (c419a70)toHaveStyles(#1819) (9d89ea9)v13.3.2Compare Source
🐛 Bug Fixes
New Contributors
v13.3.1Compare Source
🐛 Bug Fixes
v13.3.0Compare Source
✨ Features
renderAsync) (#1788) (79d230a)renderHookAsync(#1805) (196680b)📚 Documentation
v13.2.2Compare Source
🐛 Bug Fixes
v13.2.1Compare Source
✨ Features
🐛 Bug Fixes
pointerEventsin both props and styles (#1799) (cc1e249)📚 Documentation
v13.2.0Compare Source
✨ Features
react-test-rendererversion (#1755) (2e5238a)v13.1.1Compare Source
🐛 Bug Fixes
v13.1.0Compare Source
✨ Features
testOnlyevents (#1741) (c47220b)📚 Documentation
v13.0.1Compare Source
🐛 Bug Fixes
concurrentRootoption in render hook (#1734) (9efe13e)📚 Documentation
v13.0.0Compare Source
Migration guide
Important Changes
@testing-library/react-native/extend-expect. Importing@testing-library/react-nativewill be enough.Removed
*ByA11yStatequeries have been removed use*ByRolequeries ortoHaveAccessibilityStatematcher instead*ByA11yValuequeries have been removed use*ByRolequeries ortoHaveAccessibleValuematcher insteaddebug.shallowmethod@testing-library/react-nativeJest preset (useful for React 17). Just use regularreact-nativeJest preset.Other changes (should have no visible effects):
flushMicrotaskQueueactinstead of React Test Renderer'sv12.9.0Compare Source
This version officially supports React Native 0.77 & Expo 52.
✨ Features
type(): addskipBluroption (#1704) (1973cbc)📚 Documentation
v12.8.1Compare Source
🐛 Bug Fixes
pressevents' order (#1696) (5de8790)v12.8.0Compare Source
✨ Features
📚 Documentation
v12.7.2: (2024-09-12)Compare Source
What's Changed
Features
Imagewithaltprop as label by @mdjastrzebski in #1665Bug Fixes
Other
New Contributors
Full Changelog: callstack/react-native-testing-library@v12.6.1...v12.7.1
v12.7.1: (2024-09-12)Compare Source
What's Changed
Features
Imagewithaltprop as label by @mdjastrzebski in #1665Other
New Contributors
Full Changelog: callstack/react-native-testing-library@v12.6.1...v12.7.1
v12.7.0: (2024-09-12)Compare Source
What's Changed
Features
Imagewithaltprop as label by @mdjastrzebski in #1665Other
New Contributors
Full Changelog: callstack/react-native-testing-library@v12.6.1...v12.7.0
v12.6.1: (2024-08-28)Compare Source
What's Changed
Full Changelog: callstack/react-native-testing-library@v12.6.0...v12.6.1
v12.6.0: (2024-08-16)Compare Source
What's changed
Features
type()events to match RN 0.75 (remove 'textInput' event) (#1645) (f0df299)paste()interaction (#1646) (38bceed)v12.5.3: (2024-08-09)Compare Source
What's Changed
experiments-rtlapp by @mdjastrzebski in #1642New Contributors
Full Changelog: callstack/react-native-testing-library@v12.5.2...v12.5.3
v12.5.2Compare Source
Bug Fixes
v12.5.1Compare Source
Bug Fixes
v12.5.0Compare Source
Features
*ByRoleTypeScript hints by @mdjastrzebski in #1596Bug Fixes
actusage by @mdjastrzebski in #1592New Contributors
v12.4.5Compare Source
RNTL 12.4.5 (2024-03-28)
Bugfixes
findBy*timeout with detached screen by @mdjastrzebski in #1576Other
Full Changelog: callstack/react-native-testing-library@v12.4.4...v12.4.5
v12.4.4Compare Source
RNTL 12.4.4 (2024-03-18)
Bug Fixes
New Contributors
Full Changelog: callstack/react-native-testing-library@v12.4.3...v12.4.4
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 06:59 AM, only on Monday ( * 0-6 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.