Skip to content

RN: Fix useMergeRefs-test.js#47076

Closed
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D64498741
Closed

RN: Fix useMergeRefs-test.js#47076
yungsters wants to merge 1 commit into
facebook:mainfrom
yungsters:export-D64498741

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
The Jest unit tests for useMergeRefs were incorrectly implemented, leading to missing expected values. The root cause is that the test helpers were rendering to new roots instead of reusing the same root.

This refactors the test helpers to be simpler and easier to debug, and then fixes the bug described above.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D64498741

Summary:
The Jest unit tests for `useMergeRefs` were incorrectly implemented, leading to missing expected values. The root cause is that the test helpers were rendering to new roots instead of reusing the same root.

This refactors the test helpers to be simpler and easier to debug, and then fixes the bug described above.

Changelog:
[Internal]

Reviewed By: lunaleaps

Differential Revision: D64498741
@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 Oct 16, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D64498741

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in fa0358a.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 16, 2024
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @yungsters in fa0358a

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

@yungsters yungsters deleted the export-D64498741 branch March 13, 2025 16:10
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants