3 ms·
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 bu
by napolux 4y ago
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
- sharperguy 4y agoI tend to find it works best as a tool for generating situation specific examples rather than writing you entire code for you. Like when every stack overflow answer you find just doesn't fit because of one major difference in your situation, chatgpt often has you covered. Then you take the example code it gives you and adapt it to your actual codebase, testing to see if it works as expected as you go.
- napolux 4y agoyep, i had the very same “stackoverflow dejavu” feeling