how to install enzyme
npm i --save-dev enzyme enzyme-adapter-react-16 enzyme-to-json
// Yarn
yarn add --dev enzyme enzyme-adapter-react-16 enzyme-to-json
how to install enzyme
npm i --save-dev enzyme enzyme-adapter-react-16 enzyme-to-json
// Yarn
yarn add --dev enzyme enzyme-adapter-react-16 enzyme-to-json
react enzyme
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us