Newts Parading Majestically
Wondering what’s next for npm?Check out our public roadmap! »

@wojtekmaj/enzyme-adapter-react-17

0.4.1 • Public • Published

@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

Note for npm v7 users

enzyme's dependencies have not yet been updated to declare React 17 in peerDependencies. You need to add --legacy-peer-deps to the install command for it to work correctly.

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

Install

npm i @wojtekmaj/enzyme-adapter-react-17

DownloadsWeekly Downloads

77,073

Version

0.4.1

License

MIT

Unpacked Size

262 kB

Total Files

16

Last publish

Collaborators

  • avatar