Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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() });
 
PREVIOUS NEXT
Tagged: #enzyme #adapter #react
ADD COMMENT
Topic
Name
5+9 =