Skip to content

fix: add missing jest-preset.js export#55618

Closed
mdjastrzebski wants to merge 1 commit into
react:mainfrom
mdjastrzebski:fix/jest-present-exports
Closed

fix: add missing jest-preset.js export#55618
mdjastrzebski wants to merge 1 commit into
react:mainfrom
mdjastrzebski:fix/jest-present-exports

Conversation

@mdjastrzebski

@mdjastrzebski mdjastrzebski commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Summary:

The new @react-native/jest-preset package did not include critical jest-present.js file in the exported version: https://www.npmjs.com/package/@react-native/jest-preset?activeTab=code

Without this the new preset is not usable, and the old preset is no longer available (in nightly versions)

Changelog: [Internal]

Test Plan:

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 19, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Feb 19, 2026
@huntie

huntie commented Feb 19, 2026

Copy link
Copy Markdown
Member

Updated summary to Changelog: [Internal], since this fixes an unreleased feature.

@meta-codesync

meta-codesync Bot commented Feb 19, 2026

Copy link
Copy Markdown

@huntie has imported this pull request. If you are a Meta employee, you can view this in D93727883.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 55984e2 Feb 19, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 19, 2026
@meta-codesync

meta-codesync Bot commented Feb 19, 2026

Copy link
Copy Markdown

@huntie merged this pull request in 55984e2.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @mdjastrzebski in 55984e2

When will my fix make it into a release? | How to file a pick request?

@m-bert

m-bert commented Mar 4, 2026

Copy link
Copy Markdown

Was it included in 0.85.0-rc.0? Here I can see that it should be, but when I create new app with npx @react-native-community/cli init jest-preset.js is still missing.

@huntie

huntie commented Mar 4, 2026

Copy link
Copy Markdown
Member

@m-bert Yes I believe so.

cc @alanleedev in case there's any release integration issue with this (e.g. template).

image

@m-bert

m-bert commented Mar 4, 2026

Copy link
Copy Markdown

Yes I believe so.

In that case I don't know why it doesn't work in my case. It also caused our test CI to fail. Is there anything else that I should do, other than steps from upgrade helper?

@m-bert

m-bert commented Mar 5, 2026

Copy link
Copy Markdown

Oh okay, I think I've found what's wrong.

Default template does not include @react-native/jest-preset in package.json and when I tried to install it via yarn it added 0.85.0-nightly-20260219-44901aaf9 version which doesn't contain jest-preset.js.

Same with upgrade helper, it doesn't say that jest-preset should be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants