Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
6d22a789
Commit
6d22a789
authored
8 years ago
by
kiran ps
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
modified documentation for setting up jest-enzyme (#1562)
parent
9c33f602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/README.md
+4
-0
packages/react-scripts/template/README.md
with
4 additions
and
0 deletions
+4
-0
packages/react-scripts/template/README.md
+
4
-
0
View file @
6d22a789
...
...
@@ -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';
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment