From 8c375ac4d272e3ebab79a18e28f5a6ddbb749ae7 Mon Sep 17 00:00:00 2001 From: kiran ps Date: Wed, 15 Feb 2017 15:35:34 +0530 Subject: [PATCH] modified documentation for setting up jest-enzyme (#1562) --- packages/react-scripts/template/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 82c94f99d5a..715b8d06f74 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -954,6 +954,10 @@ 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`. +```sh +npm install --save-dev jest-enzyme +``` + ```js // src/setupTests.js import 'jest-enzyme';