🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@wojtekmaj/enzyme-adapter-react-17

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wojtekmaj/enzyme-adapter-react-17

JavaScript Testing utilities for React

latest
Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
400K
-9.03%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

javascript

FAQs

Package last updated on 09 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts