🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mahpooya/enzyme-adapter-react-17

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mahpooya/enzyme-adapter-react-17

JavaScript Testing utilities for React (forked for editing react dependency)

latest
Source
npmnpm
Version
0.8.1
Version published
Maintainers
1
Created
Source

npm downloads CI

@mahpooya/enzyme-adapter-react-17

Unofficial adapter for React 17 for Enzyme (forked for editing react dependency)

Installation

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

or, if you're using Yarn:

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

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

Keywords

javascript

FAQs

Package last updated on 15 Nov 2023

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