Facing Error ‘createRoot(…): Target container is not a DOM element’ in running tests of React 18 app
I recently upgraded my React App into React 18.2.0. and when trying to use the @testing-library/react library to run the tests, I got the error: createRoot(…): Target container is not a DOM element.