Skip to content

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

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-repo-tooling
Closed

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

Conversation

@renovate

@renovate renovate Bot commented Sep 7, 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: (in timezone Europe/Amsterdam)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • 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 requested a review from simonvanlierde as a code owner September 7, 2026 04:12
@renovate renovate Bot added the dependencies label Sep 7, 2026
@renovate
renovate Bot force-pushed the renovate/major-repo-tooling branch from e3a3e8c to b99481b Compare September 7, 2026 04:34
simonvanlierde added a commit that referenced this pull request Sep 7, 2026
…ge 3 (#191)

* chore(deps): update repo tooling to jest 30, pnpm 12, and async-storage 3

Takes the non-blocked half of #189. Babel 8 and TypeScript 7 are held back by
upstream and pinned in the Renovate config rather than carried here.

- rename AsyncStorage `multiRemove` to v3's `removeMany`, and point the jest
  setup at the mock's new `/jest` entry point
- wrap the shipped AsyncStorage mock in jest spies: v3 ships plain functions,
  and tests assert on the calls
- clear the mock through the instance, not `clearAllMockStorages()`, which
  empties the registry and leaves the handed-out instance holding its data
- type the test mocks that jest 30 now checks against their real signatures
- restore node types to the app tsconfig, dropped when @types/jest stopped
  pulling them in
- decide the two build scripts pnpm 12 asks about, both declined
- exclude the lockfile from check-yaml: pnpm 12 writes it as two documents
- hold @babel/core and typescript below the versions their toolchains reject

* chore(deps): drop dependency policy entries that no longer apply

Reviewed the hand-maintained dependency policy against the resolved tree.

- correct the shell-quote advisory id, which had been mangled to
  `GHSA-wpn peer7jw-789q-3m8p`, to GHSA-w7jw-789q-3m8p
- drop the two image-size advisories from ignoreGhsas and from ci.yml's
  allow-ghsas: the package is no longer in the tree, so both entries were
  waiving nothing. `just audit` now reports 1 ignored finding, not 3
- drop the dompurify@3.4.13 release-age exclusion, superseded by the
  override pinning 3.4.14
- restate why lightningcss is pinned: the NativeWind reason is gone with the
  Uniwind migration, but removing it resolves three copies side by side
@renovate
renovate Bot force-pushed the renovate/major-repo-tooling branch from b99481b to faf234d Compare September 7, 2026 06:04
@renovate renovate Bot changed the title fix(deps): update repo-tooling (major) chore(deps): update dependency @testing-library/react-native to v14 Sep 7, 2026
@simonvanlierde

Copy link
Copy Markdown
Contributor

Superseded by #192, which landed RNTL 14 along with the async-rendering migration it requires.

@simonvanlierde
simonvanlierde deleted the renovate/major-repo-tooling branch September 7, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant