@mahpooya/enzyme-adapter-react-17
v0.8.1
Published
JavaScript Testing utilities for React (forked for editing react dependency)
Downloads
945
Maintainers
Readme
@mahpooya/enzyme-adapter-react-17
Unofficial adapter for React 17 for Enzyme (forked for editing react dependency)
Installation
npm install --save-dev @mahpooya/enzyme-adapter-react-17
or, if you're using Yarn:
yarn add --dev @mahpooya/enzyme-adapter-react-17
Configuration
Finally, you need to configure enzyme to use the adapter you want it to use. To do this, you can use the top level configure(...)
API.
import Enzyme from 'enzyme';
import Adapter from '@mahpooya/enzyme-adapter-react-17';
Enzyme.configure({ adapter: new Adapter() });