Skip to content

Conversation

@mdjastrzebski
Copy link
Contributor

This is a cherry pick from: #51530

Summary:

Alternative to #50784.

__mocks__ (and other underscored dirs) are correctly excluded from our npm package via package.json#files. But in this instance, this is a source file for the jest/ directory (Jest preset within react-native), and should be included — fix by relocating.

Changelog:
[General][Fixed] - Fix missing RefreshControlMock source in Jest preset

Reviewed By: rshest

Differential Revision: D75215731

fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571

Conflicts:

packages/react-native/jest/setup.js

Summary:

Changelog:

Test Plan:

Summary:
Pull Request resolved: facebook#51530

Alternative to facebook#50784.

`__mocks__` (and other underscored dirs) are correctly excluded from our npm package via `package.json#files`. But in this instance, this is a source file for the `jest/` directory (Jest preset within `react-native`), and should be included — fix by relocating.

Changelog:
[General][Fixed] - Fix missing RefreshControlMock source in Jest preset

Reviewed By: rshest

Differential Revision: D75215731

fbshipit-source-id: 1240344c4236288f31b16513f4df16766ad1e571

# Conflicts:
#	packages/react-native/jest/setup.js
@facebook-github-bot facebook-github-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 Jun 11, 2025
@cortinico
Copy link
Contributor

Closing as #51530 has already been picked on the release branch

@cortinico cortinico closed this Jun 26, 2025
@anujraghuvanshi
Copy link

@cortinico In which release and by when the fix will be coming ?

@cortinico
Copy link
Contributor

It's on the 0.80 release branch: https://github.com/facebook/react-native/commits/0.80-stable/
It will be released in 0.80.1 sometime next week or the following

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. Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants