Skip to content

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 12, 2025

BREAKING CHANGE: asyncWrapper is no longer used around waitFor scope

user-event has started using asyncWrapper around small async steps. RTL needs to disable the act environment around waitFor. We're resolving this conflict with a new wrapper specific to waitFor.

RTL will use waitFor to disable act environment and configure asyncWrapper to use act. All user-event has to do is ensure it awaits the fireEvent since these are now async.

@eps1lon eps1lon force-pushed the sebbie/11-12-feat_use_new_waitforwrapper_around_waitfor_scope branch from 0036d22 to d60b275 Compare November 12, 2025 12:46
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 12, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8abda5a:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon force-pushed the sebbie/11-12-feat_use_new_waitforwrapper_around_waitfor_scope branch from d60b275 to 8abda5a Compare November 12, 2025 13:05
@eps1lon eps1lon marked this pull request as ready for review November 12, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant