Skip to content

chore: React Native 0.85, @react-native/jest-preset, React 19.2.3 alignment#3890

Merged
ntucker merged 6 commits intomasterfrom
cursor/rn-085-jest-1600
Apr 9, 2026
Merged

chore: React Native 0.85, @react-native/jest-preset, React 19.2.3 alignment#3890
ntucker merged 6 commits intomasterfrom
cursor/rn-085-jest-1600

Conversation

@ntucker
Copy link
Copy Markdown
Collaborator

@ntucker ntucker commented Apr 9, 2026

Summary

  • Upgrade react-native to 0.85.0 and babel-plugin-syntax-hermes-parser to ^0.35.0 (root and package dev peers where applicable).
  • Add @react-native/jest-preset and wire the ReactNative Jest project to its jest/ entry points: resolver, setup, test environment, and asset file transformer, while keeping @anansi/jest-preset as the overall preset (we do not set preset: '@react-native/jest-preset').
  • Add the preset’s ^react-native($|/.*) moduleNameMapper, with replacement dirname(react-native/package.json) + $1 so subpath imports do not get a double slash ($1 already includes the leading / when present).
  • Pin react, react-dom, and react-test-renderer to 19.2.3 (and resolutions) so they match react-native-renderer bundled with RN 0.85.
  • Sync example package.json / lockfiles where React was pinned.
  • subscriptions.native.tsx: import makeRenderDataClient from @data-client/test.

Verification

  • yarn ci:build-test-lib
  • yarn test:ci

Note

No changeset: internal tooling / CI dependency alignment, not a shipping API change.

Open in Web Open in Cursor 

renovate bot and others added 2 commits April 9, 2026 12:14
Bump react-native to 0.85.0, babel-plugin-syntax-hermes-parser to ^0.35.0,
and add @react-native/jest-preset for the ReactNative Jest project (resolver,
setup, env, asset transformer, react-native subpath mapper). Pin react,
react-dom, and react-test-renderer to 19.2.3 to match react-native-renderer.
Fix subscriptions.native test import to use @data-client/test.

Co-authored-by: Nathaniel Tucker <me@ntucker.me>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs-site Ignored Ignored Preview Apr 9, 2026 1:16pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 9, 2026

⚠️ No Changeset found

Latest commit: abd602b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ntucker ntucker marked this pull request as ready for review April 9, 2026 12:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

Size Change: 0 B

Total Size: 80.7 kB

ℹ️ View Unchanged
Filename Size
examples/test-bundlesize/dist/App.js 1.46 kB
examples/test-bundlesize/dist/polyfill.js 307 B
examples/test-bundlesize/dist/rdcClient.js 10.5 kB
examples/test-bundlesize/dist/rdcEndpoint.js 8 kB
examples/test-bundlesize/dist/react.js 59.7 kB
examples/test-bundlesize/dist/webpack-runtime.js 726 B

compressed-size-action

Co-authored-by: Nathaniel Tucker <me@ntucker.me>
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark React

Details
Benchmark suite Current: abd602b Previous: 7df6a49 Ratio
data-client: getlist-100 131.58 ops/s (± 5.7%) 141.85 ops/s (± 5.6%) 1.08
data-client: getlist-500 39.84 ops/s (± 5.6%) 39.45 ops/s (± 7.1%) 0.99
data-client: update-entity 322.58 ops/s (± 9.1%) 416.67 ops/s (± 9.3%) 1.29
data-client: update-user 327.96 ops/s (± 8.5%) 370.37 ops/s (± 9.7%) 1.13
data-client: getlist-500-sorted 42.2 ops/s (± 5.7%) 43.2 ops/s (± 6.2%) 1.02
data-client: update-entity-sorted 274.02 ops/s (± 8.8%) 333.33 ops/s (± 8.6%) 1.22
data-client: update-entity-multi-view 312.5 ops/s (± 5.8%) 370.37 ops/s (± 9.7%) 1.19
data-client: list-detail-switch-10 6.76 ops/s (± 4.2%) 7.86 ops/s (± 10.2%) 1.16
data-client: update-user-10000 80.65 ops/s (± 4.2%) 80.01 ops/s (± 14.7%) 0.99
data-client: invalidate-and-resolve 33.28 ops/s (± 5.6%) 34.84 ops/s (± 4.7%) 1.05
data-client: unshift-item 210.55 ops/s (± 4.1%) 232.56 ops/s (± 3.2%) 1.10
data-client: delete-item 274.02 ops/s (± 6.2%) 294.12 ops/s (± 6.7%) 1.07
data-client: move-item 178.63 ops/s (± 5.7%) 196.08 ops/s (± 6.0%) 1.10

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.11%. Comparing base (7df6a49) to head (abd602b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3890   +/-   ##
=======================================
  Coverage   98.11%   98.11%           
=======================================
  Files         153      153           
  Lines        2916     2916           
  Branches      566      566           
=======================================
  Hits         2861     2861           
  Misses         11       11           
  Partials       44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…e.json

The lockfiles for github-app, nextjs, and todo-app had react and react-dom
at 19.2.5 while their package.json files pinned 19.2.3. This mismatch
would cause npm ci to fail. Regenerated lockfiles to resolve correctly.

Co-authored-by: Nathaniel Tucker <me@ntucker.me>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7635617. Configure here.

cursoragent and others added 2 commits April 9, 2026 13:05
The capture group ($|/.*) already includes the leading slash for sub-path
imports like react-native/Libraries/Text, so the extra / in the
replacement template produced double slashes (e.g. <rnDir>//Libraries/Text).

Removing the redundant / fixes both bare react-native (empty capture)
and sub-path imports.

Co-authored-by: Nathaniel Tucker <me@ntucker.me>
…ement

Co-authored-by: Nathaniel Tucker <me@ntucker.me>
@ntucker ntucker merged commit d23cd80 into master Apr 9, 2026
26 checks passed
@ntucker ntucker deleted the cursor/rn-085-jest-1600 branch April 9, 2026 13:21
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.

2 participants