# @wojtekmaj/enzyme-adapter-react-17

> JavaScript Testing utilities for React

Latest version **0.8.0** (published 2022-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wojtekmaj/enzyme-adapter-react-17
pnpm add @wojtekmaj/enzyme-adapter-react-17
yarn add @wojtekmaj/enzyme-adapter-react-17
bun add @wojtekmaj/enzyme-adapter-react-17
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2022-11-09 |
| First published | 2020-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 251.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 297 |
| Author | Jordan Harband <ljharb@gmail.com> |
| Maintainers | wojtekmaj |
| Keywords | javascript, shallow rendering, shallowRender, test, reactjs, react, flux, testing, test utils, assertion helpers, tdd, mocha |

## Links

- npm: https://www.npmjs.com/package/@wojtekmaj/enzyme-adapter-react-17
- Repository: https://github.com/wojtekmaj/enzyme-adapter-react-17
- Homepage: https://enzymejs.github.io/enzyme/
- Funding: https://github.com/wojtekmaj/enzyme-adapter-react-17?sponsor=1
- npm.io page: https://npm.io/package/@wojtekmaj/enzyme-adapter-react-17

## Dependencies (6)

- [has](https://npm.io/package/has.md) ^1.0.0
- [react-is](https://npm.io/package/react-is.md) ^17.0.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.0
- [react-test-renderer](https://npm.io/package/react-test-renderer.md) ^17.0.0
- [enzyme-shallow-equal](https://npm.io/package/enzyme-shallow-equal.md) ^1.0.0
- [@wojtekmaj/enzyme-adapter-utils](https://npm.io/package/@wojtekmaj/enzyme-adapter-utils.md) ^0.2.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2022-11-09
- 0.6.6-beta.3 (next) — 2021-12-09
- 0.7.0 — 2022-11-04
- 0.6.7 — 2022-03-26
- 0.6.6 — 2021-12-09
- 0.6.6-beta.2 — 2021-12-09
- 0.6.6-beta — 2021-12-09
- 0.6.5 — 2021-10-21
- 0.6.4 — 2021-10-21
- 0.6.3 — 2021-07-16
- 0.6.2 — 2021-06-10
- 0.6.1 — 2021-04-09
- 0.6.0 — 2021-03-24
- 0.6.0-beta.2 — 2021-03-24
- 0.6.0-beta — 2021-03-24
- … 11 more at https://npm.io/package/@wojtekmaj/enzyme-adapter-react-17/versions

## README

[![npm](https://img.shields.io/npm/v/@wojtekmaj/enzyme-adapter-react-17.svg)](https://www.npmjs.com/package/@wojtekmaj/enzyme-adapter-react-17) ![downloads](https://img.shields.io/npm/dt/@wojtekmaj/enzyme-adapter-react-17.svg) [![CI](https://github.com/wojtekmaj/enzyme-adapter-react-17/workflows/CI/badge.svg)](https://github.com/wojtekmaj/enzyme-adapter-react-17/actions)

# @wojtekmaj/enzyme-adapter-react-17

Unofficial adapter for React 17 for [Enzyme](https://enzymejs.github.io/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.

```js
import Enzyme from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';

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

---
_Source: https://npm.io/package/@wojtekmaj/enzyme-adapter-react-17 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
