kentcdodds.com
kentcdodds.com copied to clipboard
Follow-up on "Wrapping things in act unnecessarily"
Hello,
First, thank you for you work and this lib 💌
After some code exploration, a colleague and I came to the conclusion that react-testing-library's version of fireEvent does currently (at least with version 14.5.2) require to be wrapped with act, which was not the case previously as advised at
https://kentcdodds.com/blog/common-mistakes-with-react-testing-library#wrapping-things-in-act-unnecessarily
It would be great if you could update this blogpost or post a new one because it seems things have changed since 2020 :)
Cheers
Could you show me a reproduction of the issue? I'm fairly confident you are mistaken, but I could be wrong!