Bug: global.IS_REACT_ACT_ENVIRONMENT = false does not work #24854
Labels
Resolution: Support Redirect
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Potentially related to using jest. Didn't confirm.
React version: 18.2.0
Steps To Reproduce
create-react-app
with an adjustment toApp
component to trigger an asyncsetState
and an adjustment to the test to wait for that async state update.npm install
npm test -- --watchAll
The current behavior
It logs
Warning: An update to App inside a test was not wrapped in act(...).
The expected behavior
It does not log that warning.
The text was updated successfully, but these errors were encountered: