Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

wojtekmaj/enzyme-adapter-react-17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

752f483 · Apr 17, 2023
Mar 27, 2023
Jan 29, 2022
Jan 29, 2022
Oct 11, 2022
Nov 9, 2022
Apr 17, 2023
Feb 3, 2022
Mar 24, 2021
Jan 29, 2022
Jan 27, 2022
Jan 29, 2022
Jan 12, 2023
Mar 27, 2023
Jan 4, 2023
Nov 2, 2021
Jan 29, 2022
Apr 10, 2023
Apr 17, 2023

Repository files navigation

npm downloads CI

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