How to solve the “update was not wrapped in act()” warning in testing-library-react?
I’m working with a simple component that does a side effect. My test passes, but I’m getting the warning Warning: An update to Hello inside a test was not wrapped in act(...).
.