@wojtekmaj/enzyme-adapter-react-17
JavaScript Testing utilities for React
🌟 Show real-time usage chart on @wojtekmaj/enzyme-adapter-react-17's README.md, just copy the code below.## Usage Trend
[](https://npm-compare.com/@wojtekmaj/enzyme-adapter-react-17#timeRange=THREE_YEARS)
🌟 Show GitHub stars trend chart on @wojtekmaj/enzyme-adapter-react-17's README.md, just copy the code below.## GitHub Stars Trend
[](https://npm-compare.com/@wojtekmaj/enzyme-adapter-react-17)
@wojtekmaj/enzyme-adapter-react-17

@wojtekmaj/enzyme-adapter-react-17
Unofficial adapter for React 17 for Enzyme.
Installation
npm install --save-dev @wojtekmaj/enzyme-adapter-react-17
or, if you're using Yarn:
yarn add --dev @wojtekmaj/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 '@wojtekmaj/enzyme-adapter-react-17';
Enzyme.configure({ adapter: new Adapter() });