After the project was moved to react version 18 we lost official enzyme support.
To make the tests pass for now, the unofficial adapter @cfaester/enzyme-adapter-react-18 was added.
This should not be a permanent solution and moving to a newer testing library like the React Testing Library.