“adaptador enzimático reagir 17” Respostas de código

adaptador enzimático reagir 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() });
shkHaider

Instalação da enzima NPM

npm i --save-dev enzyme enzyme-adapter-react-16
Frightened Fox

enzima-adapta-react-17

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

Enzyme.configure({ adapter: new Adapter() });
Mystic Dev

enzynme não suporta react 17

how to fix this use this

"peerDependencies": {
    "react": "^16.13.1",
    "react-dom": "^16.13.1"
  }
Restu Wahyu Saputra

enzima-adapta-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
Restu Wahyu Saputra

Respostas semelhantes a “adaptador enzimático reagir 17”

Perguntas semelhantes a “adaptador enzimático reagir 17”

Mais respostas relacionadas para “adaptador enzimático reagir 17” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código