From 798572a8bc42fa068675e07c3a4819c5c34642c6 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 9 Apr 2017 20:02:56 +0100 Subject: [PATCH] Note that only jest-enzyme@2.x is compatible --- packages/react-scripts/template/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 147c9280e24..d9ba1a6052c 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -1015,10 +1015,10 @@ Additionally, you might find [jest-enzyme](https://github.com/blainekasten/enzym expect(wrapper).toContainReact(welcome) ``` -To setup jest-enzyme with Create React App, follow the instructions for [initializing your test environment](#initializing-test-environment) to import `jest-enzyme`. +To setup jest-enzyme with Create React App, follow the instructions for [initializing your test environment](#initializing-test-environment) to import `jest-enzyme`. **Note that currently only version 2.x is compatible with Create React App.** ```sh -npm install --save-dev jest-enzyme +npm install --save-dev jest-enzyme@2.x ``` ```js