The Unit Test Code GPT command generates unit tests that use Enzyme which is incompatible with React 18.
It would be good to default to RTL instead OR better, if it looked at the package.json to figure out the testing libraries used and generate the tests accordingly.