@hteker/enzyme-adapter-react-17
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@hteker/enzyme-adapter-react-17

Unofficial adapter for React 17 for Enzyme.

Installation

npm install --save-dev @hteker/enzyme-adapter-react-17

or, if you're using Yarn:

yarn add --dev @hteker/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 '@hteker/enzyme-adapter-react-17';

Enzyme.configure({ adapter: new Adapter() });

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

2.77 MB

Total Files

22

Last publish

Collaborators

  • hteker