jest-plugin-enzyme
Jest plugin to quickly add enzyme to tests.
Getting Started
Install jest-plugin-enzyme
using yarn
:
yarn add --dev jest-plugin-enzyme
Usage
This package isn't used directly within tests. It's used to construct other jest-plugins
like jest-plugin-it-shallow-renders
.
If you want to configure enzyme for react automatically, you can modify the jest
section of your package.json
to include:
"jest":