kentcdodds.com icon indicating copy to clipboard operation
kentcdodds.com copied to clipboard

Follow-up on "Wrapping things in act unnecessarily"

Open frallain opened this issue 2 months ago • 1 comments

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

frallain avatar Oct 31 '25 14:10 frallain

Could you show me a reproduction of the issue? I'm fairly confident you are mistaken, but I could be wrong!

kentcdodds avatar Oct 31 '25 17:10 kentcdodds