Skip to content

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

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

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

Conversation

@renovate

@renovate renovate Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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


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 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot requested a review from huextrat as a code owner June 5, 2026 18:59
@renovate renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from fdf763f to 0b3b1b1 Compare June 13, 2026 03:26
@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=100%, but got 59.09090909090909%

St.
Category Percentage Covered / Total
🔴 Statements 59.09% 13/22
🟢 Branches 100% 4/4
🔴 Functions 44.44% 4/9
🟡 Lines 61.9% 13/21

Test suite run failed

Failed tests: 0/4. Failed suites: 1/2.
  ● Test suite failed to run

    Cannot find module 'test-renderer' from 'node_modules/@testing-library/react-native/dist/render.js'

    Require stack:
      node_modules/@testing-library/react-native/dist/render.js
      node_modules/@testing-library/react-native/dist/pure.js
      node_modules/@testing-library/react-native/dist/index.js
      src/__tests__/index.test.tsx

    > 1 | import { renderHook } from '@testing-library/react-native';
        | ^
      2 | import { NativeEventEmitter } from 'react-native';
      3 | import NativeScreenshotAware from '../NativeScreenshotAware';
      4 | import ScreenshotAware, { useScreenshotAware } from '../index';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.require (node_modules/@testing-library/react-native/src/render.tsx:3:1)
      at Object.require (node_modules/@testing-library/react-native/src/pure.ts:4:1)
      at Object.require (node_modules/@testing-library/react-native/src/index.ts:5:1)
      at Object.require (src/__tests__/index.test.tsx:1:1)

Report generated by 🧪jest coverage report action from 6a3968d

@renovate renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 0b3b1b1 to 6f89dc0 Compare June 13, 2026 14:42
@renovate renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 6f89dc0 to 6a3968d Compare June 21, 2026 05:00
@renovate renovate Bot changed the title chore(deps): update testing-library monorepo to v14 chore(deps): update testing-library monorepo (major) Jun 22, 2026
@renovate renovate Bot force-pushed the renovate/major-testing-library-monorepo branch from 6a3968d to f59c8f2 Compare June 23, 2026 16:01
@renovate

renovate Bot commented Jun 23, 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: yarn.lock
➤ YN0000: · Yarn 4.17.0
➤ YN0000: ┌ Resolution step
➤ YN0016: │ @testing-library/react-native@npm:14.0.1: All versions satisfying "14.0.1" are quarantined
➤ YN0000: └ Completed in 0s 581ms
➤ YN0000: · Failed with errors in 0s 589ms

@renovate renovate Bot changed the title chore(deps): update testing-library monorepo (major) chore(deps): update dependency @testing-library/react-native to v14 Jun 27, 2026
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