Did a try with ChatGPT asking to write a react hook doing something really basic.
Code was ok, as expected.
I asked to write tests for it, code looked good but it won’t run for some act() errors.
Then it was mocking network calls…
After trying for a while I had to write tests myself