Skip to content

Wrap jest/renderer create abstraction in act for concurrent rendering#44994

Closed
robhogan wants to merge 6 commits into
facebook:mainfrom
robhogan:export-D58650940
Closed

Wrap jest/renderer create abstraction in act for concurrent rendering#44994
robhogan wants to merge 6 commits into
facebook:mainfrom
robhogan:export-D58650940

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

Summary:
For RN monorepo tests, wrap create calls through our jest/renderer abstraction in await act.

This is a no-op under current React but will be required under react-test-renderer@19 with IS_REACT_ACT_ENVIRONMENT.

Changelog: [Internal]

Differential Revision: D58650940

robhogan added 4 commits June 16, 2024 11:38
…reparation for React 19

Summary:
Use our existing thin abstraction around `react-test-renderer` `create` within `react-native/jest/renderer`, in order to benefit from the introduction of async `act` wrapping in that abstraction.

Changelog: [Internal]

Differential Revision: D58650874
@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: D58650940

robhogan and others added 2 commits June 16, 2024 13:43
Differential Revision: D58651811
…dering (facebook#44994)

Summary:
Pull Request resolved: facebook#44994

For RN monorepo tests, wrap `create` calls through our `jest/renderer` abstraction in `await act`.

This is a no-op under current React but will be required under `react-test-renderer@19` with `IS_REACT_ACT_ENVIRONMENT`.

Changelog: [Internal]

Reviewed By: yungsters

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

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 16, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 132e2a3.

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.

2 participants