Answers for "what is Adapter from 'enzyme-adapter-react-16'"

0

enzyme-adapter-react-17

import Enzyme from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';

Enzyme.configure({ adapter: new Adapter() });
Posted by: Guest on December-17-2020
0

enzyme-adapter-react-16

step by step how to fix enzyme-adapter-react-16  not support for React version 17


step one : npm i npm-install-peers -g
step two copy this : 
"peerDependencies": {
    "react": "^16.13.1",
    "react-dom": "^16.13.1"
}
step three: typing in your terminal npm-install-peers
Posted by: Guest on November-17-2020

Code answers related to "what is Adapter from 'enzyme-adapter-react-16'"

Code answers related to "Javascript"

Browse Popular Code Answers by Language