Skip to content

Update dependency @testing-library/react-native to v14#383

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

Update dependency @testing-library/react-native to v14#383
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-testing-library-monorepo

Conversation

@renovate

@renovate renovate Bot commented May 31, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@testing-library/react-native (source) 12.6.014.0.1 age 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


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 5de8f1e to 39cebf5 Compare June 3, 2025 20:22
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 39cebf5 to 97b584b Compare June 26, 2025 17:18
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 97b584b to 1af687b Compare July 28, 2025 22:09
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 1af687b to 0b26211 Compare August 7, 2025 11:46
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch 3 times, most recently from df64049 to 3b83e51 Compare August 25, 2025 11:14
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch 2 times, most recently from 4c0bf7c to 4ad1c05 Compare August 31, 2025 10:11
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 4ad1c05 to afbbf85 Compare September 25, 2025 19:33
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from afbbf85 to 08b1826 Compare October 21, 2025 16:59
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 08b1826 to 4c00211 Compare December 31, 2025 16:35
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 4c00211 to 64a5672 Compare January 8, 2026 17:20
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 64a5672 to 0c959e1 Compare January 23, 2026 20:22
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 0c959e1 to b7ce15a Compare March 13, 2026 17:54
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from b7ce15a to 2fb11cc Compare April 1, 2026 20:19
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 2fb11cc to 105c9a4 Compare May 12, 2026 11:01
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 105c9a4 to 01b886a Compare June 1, 2026 19:22
@renovate renovate Bot changed the title Update dependency @testing-library/react-native to v13 Update testing-library monorepo to v13 Jun 2, 2026
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 01b886a to 6dc2378 Compare June 5, 2026 18:34
@renovate renovate Bot changed the title Update testing-library monorepo to v13 Update testing-library monorepo to v14 Jun 5, 2026
@renovate renovate Bot changed the title Update testing-library monorepo to v14 Update testing-library monorepo (major) Jun 22, 2026
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 6dc2378 to b256e4e Compare June 23, 2026 13:12
@renovate renovate Bot changed the title Update testing-library monorepo (major) Update dependency @testing-library/react-native to v14 Jun 25, 2026
@renovate
renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from b256e4e to 16c0007 Compare July 12, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants