Skip to content

chore(deps-dev): bump @testing-library/react-native from 13.3.3 to 14.0.1 - #571

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testing-library/react-native-14.0.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/testing-library/react-native-14.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 4, 2026

Copy link
Copy Markdown
Contributor

Bumps @testing-library/react-native from 13.3.3 to 14.0.1.

Release notes

Sourced from @​testing-library/react-native's releases.

v14.0.1

14.0.1 (2026-06-23)

🐛 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

14.0.0 (2026-06-05)

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

... (truncated)

Changelog

Sourced from @​testing-library/react-native's changelog.

Changelog

All notable changes to React Native Testing Library will be documented in this file, starting with v14.

14.1.0

Features

  • Added fireEvent.layout() to simulate the layout engine measuring an element, invoking the onLayout handler with a synthetic layout event.
  • Added userEvent.accessibilityAction() to dispatch a named accessibility action to an element, invoking its onAccessibilityAction handler.
  • Added userEvent.pullToRefresh() to simulate the pull-to-refresh gesture on a host ScrollView element, invoking the onRefresh handler of its refreshControl prop.

14.0.0

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.

... (truncated)

Commits

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 4, 2026
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drafto Ready Ready Preview Jul 30, 2026 10:10pm

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch 2 times, most recently from a46089a to 22ce251 Compare July 4, 2026 15:09
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch from 22ce251 to f85153a Compare July 4, 2026 15:16
@JakubAnderwald

Copy link
Copy Markdown
Owner

Major version bump — flagged for manual review. Auto-merge withheld; this needs a dedicated migration PR.

Package: @testing-library/react-native (dev), 13.3.314.0.1 (major)

CI status: ❌ failing — Desktop Checks, Mobile Checks, and Lint & Typecheck all fail (consistent with the breaking changes below). Unit/Integration, E2E, SonarCloud, and Vercel pass.

Breaking changes relevant to this codebase

  • Async-by-default render/fireEvent/renderHook/act — the dominant migration cost. render()/renderHook()/fireEvent()/act() now return Promises and must be awaited. Affected surface across apps/mobile + apps/desktop test suites: ~133 render( call sites, ~88 fireEvent usages, ~101 renderHook usages — none currently awaited. Best handled with the official v14 codemod, then manual cleanup.
  • Removed legacy UNSAFE_* queries + host-elements-only tree — 5 real usages must be rewritten:
    • apps/desktop/__tests__/components/search-overlay.test.tsx:42,63UNSAFE_rootcontainer/root
    • apps/desktop/__tests__/components/ui/button.test.tsx:27,34UNSAFE_getAllByType(ActivityIndicator)
    • apps/mobile/__tests__/unit/components/ui/input.test.tsx:64,66UNSAFE_getByType(TextInput)
    • apps/mobile/__tests__/unit/components/ui/button.test.tsx:38,41UNSAFE_getByType(ActivityIndicator)
    • Query results now expose host elements only (composite components no longer visible), so the getByType-on-a-component pattern above needs rethinking regardless.

Breaking changes NOT relevant (features/APIs we don't use, or already satisfied)

  • Dropped React 18 → we're on react@19.2.7
  • Min RN raised to 0.78 → we're on react-native@0.86.0
  • Removed renderAsync / renderHookAsync / fireEventAsync — not used
  • Removed update alias → rerender — not used (all .update( hits are WatermelonDB record writes, not RNTL)
  • Removed getQueriesForElement alias → within — not used
  • Removed UNSAFE_getByProps / UNSAFE_getAllByProps — not used
  • Removed createNodeMock, concurrentRoot, unstable_validateStringsRenderedWithinText render options — not used (the lone concurrentRoot hit is in RN's generated type shims)

Peer dependency impacts

  • v14 replaces React Test Renderer with the new Test Renderer 1.x and adds it as a peer dep matching your React 19 minor. apps/mobile/package.json pins react-test-renderer@19.2.7 — that dependency likely needs swapping/removing for the new Test Renderer per the migration guide.
  • Node engine: v14 requires ^22.13.0 || >=24. CI uses .nvmrc = 22 (latest 22.x → satisfies). Note: local dev is on Node 23.7.0, which is outside the supported range — bump the toolchain to 22.13+ or 24+.

Recommendation: ⚠️ Not safe to auto-merge. This is a genuine breaking major with a wide test-suite migration (~130 render sites to make async + 5 removed-API rewrites + a peer-dep swap), which is exactly why Mobile/Desktop/Lint CI is red. Route to a dedicated migration PR: run the official v14 codemod, add await to render/fireEvent/renderHook, rewrite the UNSAFE_* queries to host-element queries / container, swap the Test Renderer peer dep, and bump the Node toolchain. Keep on needs-review.

@JakubAnderwald JakubAnderwald added the needs-review Needs manual review label Jul 4, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch from f85153a to bc25e6f Compare July 6, 2026 22:10
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch from bc25e6f to 352bb68 Compare July 13, 2026 22:06
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch from 352bb68 to 886b32a Compare July 15, 2026 06:14
Bumps [@testing-library/react-native](https://github.com/callstack/react-native-testing-library) from 13.3.3 to 14.0.1.
- [Release notes](https://github.com/callstack/react-native-testing-library/releases)
- [Changelog](https://github.com/callstack/react-native-testing-library/blob/main/CHANGELOG.md)
- [Commits](callstack/react-native-testing-library@v13.3.3...v14.0.1)

---
updated-dependencies:
- dependency-name: "@testing-library/react-native"
  dependency-version: 14.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/testing-library/react-native-14.0.1 branch from 886b32a to 8b56de7 Compare July 30, 2026 22:06

This branch was successfully deployed

1 active deployment
Preview 8b56de76 Deployed Jul 30, 2026 by vercel[bot]
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 javascript Pull requests that update javascript code needs-review Needs manual review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant