npm.io
0.6.3 • Published 5 years ago

enzyme-adapter-react-17-lirsoft

Licence
MIT
Version
0.6.3
Deps
8
Size
255 kB
Vulns
0
Weekly
0
Stars
297

npm downloads CI dependencies dev dependencies

@wojtekmaj/enzyme-adapter-react-17

Unofficial adapter for React 17 for Enzyme.

Forked to work with Reaact 17.0.*

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() });

Keywords