Replies: 1 comment 3 replies
-
Does |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@testing-library/user-event
version: 13.5.0"@testing-library/react": "12.1.2"
"@testing-library/jest-dom": "5.16.1"
What you did:
What happened:
Problem description:
The userEvent.click produces the famous "act" warning, while fireEvent.click not. If useEvent.click is wrapped by act, warning dissapears, but that's not recommended (inclusive in
eslint-plugin-testing-library
marks as error).Suggested solution:
Wrap all userEvent with and act, but that's not a "correct" solution...
Beta Was this translation helpful? Give feedback.
All reactions