enzyme adapter react 17
npm install --save-dev @wojtekmaj/enzyme-adapter-react-17
// or
yarn add --dev @wojtekmaj/enzyme-adapter-react-17
import Enzyme from 'enzyme';
// Import Adapter
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
//use adapter
Enzyme.configure({ adapter: new Adapter() });