Closed annabranco closed 3 years ago
There is seems to have an issue with jsdom to render a component using useRef and other dom references (Seabed) And also another problem with ErrorBoundary, possibly related to static property of component.
Check if they are related with the version of enzyme and if there is any suitable fix for that.
https://dev.to/theactualgivens/testing-react-hook-state-changes-2oga
https://www.albertgao.xyz/2019/11/05/how-to-test-react-redux-hooks-via-jest/
Custom Enzyme Adapter for React 17: https://github.com/enzymejs/enzyme/issues/2429#issuecomment-679265564