Skip to content

chore(deps): update dependency @testing-library/react-native to v14 - #313

Open
smartway-bot[bot] wants to merge 1 commit into
mainfrom
renovate/major-testing-library-monorepo
Open

chore(deps): update dependency @testing-library/react-native to v14#313
smartway-bot[bot] wants to merge 1 commit into
mainfrom
renovate/major-testing-library-monorepo

Conversation

@smartway-bot

@smartway-bot smartway-bot Bot commented Jan 10, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/react-native (source) ^12.4.3 -> ^14.0.0 age adoption passing confidence

Release Notes

callstack/react-native-testing-library (@​testing-library/react-native)

v14.0.1

Compare Source

🐛 Bug Fixes
  • cleanup of waitFor timers when an error occurs during onTimeout printout (#​1918) (366c147)
  • user-event: include selection in TextInput change event (#​1919) (e819f77)
📚 Documentation
New Contributors

Full Changelog: callstack/react-native-testing-library@v14.0.0...v14.0.1

v14.0.0

Compare Source

Migration guide

See the Migration to 14.x guide for
step-by-step upgrade instructions, codemods, and before/after examples.

Breaking changes
  • Dropped support for React 18. React 19.0.0 or newer is now required.
  • Raised the minimum supported React Native version to 0.78.
  • Raised the minimum supported Node.js version to ^22.13.0 || >=24.
  • Replaced the deprecated React Test Renderer with
    Test Renderer.
  • Added a peer dependency on Test Renderer 1.x. Install the Test Renderer compatibility line
    that matches your React 19 minor version.
  • Made the core rendering and event APIs async by default:
    • render() now returns Promise<RenderResult>.
    • renderHook() now returns Promise<RenderHookResult>.
    • fireEvent() and its helpers now return Promise<void>.
    • act() now always returns a Promise and should always be awaited.
  • Removed the renderAsync, renderHookAsync, and fireEventAsync APIs. Use render,
    renderHook, and fireEvent instead.
  • Removed the update alias. Use rerender instead.
  • Removed the getQueriesForElement alias. Use within instead.
  • Removed UNSAFE_root. Use container for the pseudo-element container or root for
    the first rendered host element.
  • Removed legacy UNSAFE_* queries:
    • UNSAFE_getAllByType
    • UNSAFE_getByType
    • UNSAFE_getAllByProps
    • UNSAFE_getByProps
  • Removed the concurrentRoot render and configuration option. Concurrent rendering is
    always enabled in v14.
  • Removed the createNodeMock render option, which is not supported by the new Test Renderer
    integration.
  • Removed the unstable_validateStringsRenderedWithinText render option. Text string
    validation is now always enabled.
Notable changes
  • Reintroduced the container API as a safe pseudo-element container, aligned with React
    Testing Library semantics.
  • Query results and the rendered element tree now expose host elements only. Composite
    components are no longer visible through the test tree.
  • Type definitions now use TestInstance from Test Renderer instead of
    ReactTestInstance from React Test Renderer.
  • Suspended or hidden instances are now represented with React Native-like hidden props, such
    as display: 'none', so visibility queries and matchers behave closer to runtime behavior.
  • fireEvent.press() and fireEvent.scroll() now pass default synthetic native event objects
    to handlers and deep-merge any event props supplied by the test.
  • Accessible name calculation now follows React Native inputs more closely, including
    TextInput placeholder handling, child accessible name concatenation, and stricter
    getByRole(..., { name }) matching.
  • configure, render, renderHook, and userEvent.setup now warn when unknown options are
    passed, helping catch stale or misspelled options during migration.
  • Text strings rendered outside of React Native <Text> components now throw, matching
    React Native runtime behavior.
Test Renderer versions

Install the Test Renderer version that matches your React 19 minor version:

React version Recommended Test Renderer version
19.2 test-renderer@1.2
19.1 test-renderer@1.1
19.0 test-renderer@1.0

Older 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 the
Test 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-deps updates dependencies by removing React Test Renderer packages,
    adding Test Renderer, and updating React Native Testing Library.
  • rntl-v14-async-functions updates test code for async render, renderHook, fireEvent,
    act, rerender, and unmount usage.
Full changelog

See the full GitHub comparison:

v13.3.3

Compare Source

🐛 Bug Fixes

v13.3.2

Compare Source

🐛 Bug Fixes
  • Do not infer generic Props type from RenderHookOptions (#​1816) (919f7c6)

New Contributors

v13.3.1

Compare Source

🐛 Bug Fixes

v13.3.0

Compare Source

✨ Features
📚 Documentation

v13.2.2

Compare Source

🐛 Bug Fixes
  • React Native 0.81 support (#​1794)
  • toBeDisabled now also evaluates disabled prop when element is Text (#​1802)

v13.2.1

Compare Source

✨ Features
🐛 Bug Fixes
  • check for pointerEvents in both props and styles (#​1799) (cc1e249)
  • update ESLint plugin documentation link in warning message (#​1782) (069de18)
📚 Documentation

v13.2.0

Compare Source

✨ Features

v13.1.1

Compare Source

🐛 Bug Fixes

v13.1.0

Compare Source

✨ Features
📚 Documentation

v13.0.1

Compare Source

🐛 Bug Fixes
📚 Documentation

v13.0.0

Compare Source

Migration guide

Important Changes
  • Enabled concurrent rendering by default
  • Automatically extend Jest matchers, you no longer need to import @testing-library/react-native/extend-expect. Importing @testing-library/react-native will be enough.
  • Removed host component name auto-detection. Your tests should run faster.
Removed
  • *ByA11yState queries have been removed use *ByRole queries or toHaveAccessibilityState matcher instead
  • *ByA11yValue queries have been removed use *ByRole queries or toHaveAccessibleValue matcher instead
  • Removed support for React 16 & 17. Supports React 18 and 19.
  • Removed debug.shallow method
  • Removed @testing-library/react-native Jest preset (useful for React 17). Just use regular react-native Jest preset.
Other changes (should have no visible effects):
  • new implementation of flushMicrotaskQueue
  • slightly different way to calculate a11y labels
  • uses React's implementation of act instead of React Test Renderer's

v12.9.0

Compare Source

This version officially supports React Native 0.77 & Expo 52.

✨ Features
📚 Documentation

v12.8.1

Compare Source

🐛 Bug Fixes

v12.8.0

Compare Source

✨ Features
📚 Documentation

v12.7.2: (2024-09-12)

Compare Source

What's Changed

Features
Bug 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
Other

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
Other

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

v12.5.3: (2024-08-09)

Compare Source

What's Changed

New Contributors

Full Changelog: callstack/react-native-testing-library@v12.5.2...v12.5.3

v12.5.2

Compare Source

Bug Fixes

v12.5.1

Compare Source

Bug Fixes
  • immediate setState in useEffect for unstable_validateStringsRenderedWithinText (#​1612) (76de7d2)

v12.5.0

Compare Source

Features
Bug Fixes

New Contributors

v12.4.5

Compare Source

RNTL 12.4.5 (2024-03-28)

Bugfixes
Other

Full Changelog: callstack/react-native-testing-library@v12.4.4...v12.4.5

v12.4.4

Compare 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@smartway-bot smartway-bot Bot added the dependencies Pull requests that update a dependency file label Jan 10, 2025
@smartway-bot smartway-bot Bot changed the title chore(deps): update dependency @testing-library/react-native to v13 chore(deps): update dependency @testing-library/react-native to v13 - autoclosed Mar 17, 2025
@smartway-bot smartway-bot Bot closed this Mar 17, 2025
@smartway-bot
smartway-bot Bot deleted the renovate/major-testing-library-monorepo branch March 17, 2025 08:52
@smartway-bot smartway-bot Bot changed the title chore(deps): update dependency @testing-library/react-native to v13 - autoclosed chore(deps): update dependency @testing-library/react-native to v13 Mar 24, 2025
@smartway-bot smartway-bot Bot reopened this Mar 24, 2025
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch from 7805feb to 7effc27 Compare March 24, 2025 02:15
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch from 7effc27 to c355b9d Compare August 4, 2025 21:00
@github-actions

github-actions Bot commented Aug 4, 2025

Copy link
Copy Markdown

🛡️ The security scan result : Repo and Config

@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch 2 times, most recently from c2b8e7f to f7465d4 Compare August 25, 2025 04:39
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch 4 times, most recently from 3eab505 to 8451dad Compare September 1, 2025 08:07
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch from 8451dad to 27545ab Compare September 17, 2025 13:16
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch from 27545ab to e4cde38 Compare November 17, 2025 17:35
@smartway-bot
smartway-bot Bot force-pushed the renovate/major-testing-library-monorepo branch from e4cde38 to c7b9990 Compare June 12, 2026 15:35
@smartway-bot
smartway-bot Bot requested a review from a team as a code owner June 12, 2026 15:35
@smartway-bot smartway-bot Bot changed the title chore(deps): update dependency @testing-library/react-native to v13 chore(deps): update dependency @testing-library/react-native to v14 Jun 12, 2026
@smartway-bot

smartway-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @zerogachis/smartway-react-native-ui@0.6.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"*" from the root project
npm ERR!   peer react@">=16.3.0" from @callstack/react-theme-provider@3.0.9
npm ERR!   node_modules/@callstack/react-theme-provider
npm ERR!     @callstack/react-theme-provider@"^3.0.9" from react-native-paper@5.10.3
npm ERR!     node_modules/react-native-paper
npm ERR!       peer react-native-paper@"*" from the root project
npm ERR!   10 more (react-native, react-native-icomoon, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev @testing-library/react-native@"^14.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@19.2.7
npm ERR! node_modules/react
npm ERR!   peer react@">=19.0.0" from @testing-library/react-native@14.0.1
npm ERR!   node_modules/@testing-library/react-native
npm ERR!     dev @testing-library/react-native@"^14.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate/cache/others/npm/_logs/2026-06-30T10_38_06_720Z-debug-0.log

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR updates the @testing-library/react-native dev dependency from version ^12.4.3 to ^14.0.0 in package.json, enabling access to newer testing library features and improvements for React Native component testing.

Changes

Testing Library Version Bump

Layer / File(s) Summary
Testing library dependency update
package.json
@testing-library/react-native dev dependency version updated to ^14.0.0, advancing two minor versions from ^12.4.3.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • jonperron

Poem

🐰 A hop and a skip, deps take a bound,
Testing tools rise from version ground,
Twelve to fourteen, a leap so grand,
React Native tests improve across the land! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: a dependency version bump of @testing-library/react-native to v14, which matches the raw_summary showing the update from ^12.4.3 to ^14.0.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/major-testing-library-monorepo

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants