Skip to content

chore(deps): update dependency @testing-library/react-native to v14.0.0-rc.0#956

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

chore(deps): update dependency @testing-library/react-native to v14.0.0-rc.0#956
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/testing-library-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 3, 2026

This PR contains the following updates:

Package Change Age Confidence
@testing-library/react-native (source) v14.0.0-alpha.114.0.0-rc.0 age confidence

Release Notes

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

v14.0.0-rc.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:

v14.0.0-beta.1

Compare Source

✨ Features
📚 Documentation

v14.0.0-beta.0

Compare Source

14.0.0-beta.0 (2026-01-20)

[!NOTE]
This is a beta release. APIs and behavior may change.

What's new

React 19 and React Native 0.78+
  • Drops support for React 18.
  • Requires React 19.0.0+ 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, and act return Promises and must be awaited.
  • This flushes pending React updates before your assertions run.
New renderer
  • Replaced deprecated react-test-renderer with Test Renderer.
  • Improved DX (HostElement replaces ReactTestInstance).
container API
  • screen.container is now safe to use.
  • Returns a pseudo-element container wrapping the rendered elements.

Breaking changes

  • Removed APIs: update (use rerender), getQueriesForElement (use within), UNSAFE_root (use container), and concurrentRoot option.
  • Removed legacy queries: UNSAFE_getAllByType, UNSAFE_getByType, UNSAFE_getAllByProps, and UNSAFE_getByProps. Use standard queries like getByRole.
  • Strict text validation: Text strings must be rendered within a <Text> component. The unstable_validateStringsRenderedWithinText option has been removed; validation is always on.

Migration

Use the codemods to upgrade:

  1. Update dependencies:

    npx codemod@latest rntl-v14-update-deps --target .
    npm install
  2. Migrate to async:

    npx codemod@latest rntl-v14-async-functions --target ./src

See the v14 Migration Guide for details.

Full Changelog

v14.0.0-alpha.6

Compare Source

14.0.0-alpha.6 (2026-01-09)

What's Changed

Full Changelog: callstack/react-native-testing-library@v14.0.0-alpha.5...v14.0.0-alpha.6

v14.0.0-alpha.5

Compare Source

14.0.0-alpha.5 (2026-01-06)

  • renaming:
    • renderAsync => render, render => unsafe_renderSync
    • renderHookAsync => renderHook, renderHook => unsafe_renderHookSync
    • fireEventAsync => fireEvent, fireEvent => unsafe_fireEventSync
    • actAsync => act, act => unsafe_act

v14.0.0-alpha.4

Compare Source

14.0.0-alpha.4 (2026-01-04)

  • make renderHook async by default

v14.0.0-alpha.3

Compare Source

14.0.0-alpha.3 (2026-01-02)

  • improved toJSON output

v14.0.0-alpha.2

Compare Source

14.0.0-alpha.2 (2026-01-02)

v14 is back:

  • rebased, to latest v13
  • proper fireEvent support with new unstable_fiber api from UTR
  • some rough edges still remain (it's alpha)

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/testing-library-monorepo branch from 1686ac1 to 47ec429 Compare January 4, 2026 18:40
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.3 chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.4 Jan 4, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from 47ec429 to c031a48 Compare January 6, 2026 18:34
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.4 chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.5 Jan 6, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from c031a48 to 899508e Compare January 9, 2026 20:39
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.5 chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.6 Jan 9, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from 899508e to db3b865 Compare January 20, 2026 17:53
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-alpha.6 chore(deps): update dependency @testing-library/react-native to v14.0.0-beta.0 Jan 20, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from db3b865 to 47ec360 Compare March 4, 2026 03:37
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch 12 times, most recently from 006fbb7 to 81e7230 Compare March 17, 2026 16:53
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch 5 times, most recently from 9afb1f0 to 5143081 Compare April 3, 2026 03:53
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch 2 times, most recently from 2513790 to 2e4cb3c Compare April 15, 2026 14:53
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from 2e4cb3c to 0d357e2 Compare April 23, 2026 16:31
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-beta.0 chore(deps): update dependency @testing-library/react-native to v14.0.0-beta.1 Apr 23, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from 0d357e2 to 9efdf26 Compare April 28, 2026 10:39
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from 9efdf26 to da94922 Compare May 7, 2026 12:43
@renovate renovate Bot changed the title chore(deps): update dependency @testing-library/react-native to v14.0.0-beta.1 chore(deps): update dependency @testing-library/react-native to v14.0.0-rc.0 May 7, 2026
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch 11 times, most recently from 94676e7 to c999f9d Compare May 14, 2026 13:10
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from c999f9d to f8852fa Compare May 19, 2026 13:49
@renovate renovate Bot force-pushed the renovate/testing-library-monorepo branch from f8852fa to 3e3aec1 Compare May 19, 2026 13:52
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