Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 5aca4e3

Browse files
author
StefanSchoof
authored
@types into devDependencies
In a new project all @types in the devDependencies. So the install command should also add them there
1 parent e45323d commit 5aca4e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/react-scripts/template/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1264,13 +1264,13 @@ When you encounter bugs caused by changing components, you will gain a deeper in
12641264
If you’d like to test components in isolation from the child components they render, we recommend using [`shallow()` rendering API](http://airbnb.io/enzyme/docs/api/shallow.html) from [Enzyme](http://airbnb.io/enzyme/). To install it, run:
12651265

12661266
```sh
1267-
npm install --save enzyme @types/enzyme enzyme-adapter-react-16 @types/enzyme-adapter-react-16 react-test-renderer @types/react-test-renderer
1267+
npm install --save-dev enzyme @types/enzyme enzyme-adapter-react-16 @types/enzyme-adapter-react-16 react-test-renderer @types/react-test-renderer
12681268
```
12691269

12701270
Alternatively you may use `yarn`:
12711271

12721272
```sh
1273-
yarn add enzyme @types/enzyme enzyme-adapter-react-16 @types/enzyme-adapter-react-16 react-test-renderer @types/react-test-renderer
1273+
yarn add --dev enzyme @types/enzyme enzyme-adapter-react-16 @types/enzyme-adapter-react-16 react-test-renderer @types/react-test-renderer
12741274
```
12751275

12761276
As of Enzyme 3, you will need to install Enzyme along with an Adapter corresponding to the version of React you are using. (The examples above use the adapter for React 16.)

0 commit comments

Comments
 (0)