Skip to content

RN: Configure Jest for React 19#44989

Closed
yungsters wants to merge 2 commits into
facebook:mainfrom
yungsters:export-D58644562
Closed

RN: Configure Jest for React 19#44989
yungsters wants to merge 2 commits into
facebook:mainfrom
yungsters:export-D58644562

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
Enables these 2 global feature flags for React Native Jest testing:

  • IS_REACT_ACT_ENVIRONMENT
  • IS_REACT_NATIVE_TEST_ENVIRONMENT

Changelog:
[General][Changed] - Enables React global flag that causes Jest testing environment to require act()

Differential Revision: D58644562

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 16, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,365,776 +0
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,569,717 -19
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 64e6721
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

yungsters and others added 2 commits June 16, 2024 23:19
Summary:
There are a couple Jest unit test cases for `VirtualizedList-test.js` that require further investigation.

We believe that these are problems with Jest fake timers in the test and not with the component itself, so for now let's skip them so as to unblock the upgrade to React 19.

Changelog:
[Internal]

Differential Revision: D58656948
Summary:
Pull Request resolved: facebook#44989

Enables these 2 global feature flags for React Native Jest testing:

- `IS_REACT_ACT_ENVIRONMENT`
- `IS_REACT_NATIVE_TEST_ENVIRONMENT`

Changelog:
[General][Changed] - Enables React global flag that causes Jest testing environment to require `act()`

Reviewed By: robhogan

Differential Revision: D58644562
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 5a83278.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 17, 2024
@yungsters yungsters deleted the export-D58644562 branch March 13, 2025 16:09
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