Skip to content

Commit 3d8c820

Browse files
josephraceTimer
authored andcommitted
Update information in User Guide for Enzyme dependency (#1982)
1 parent 8bd395a commit 3d8c820

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react-scripts/template/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ When you encounter bugs caused by changing components, you will gain a deeper in
972972
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/). You can write a smoke test with it too:
973973

974974
```sh
975-
npm install --save-dev enzyme react-addons-test-utils
975+
npm install --save-dev enzyme react-test-renderer
976976
```
977977

978978
```js
@@ -1516,17 +1516,17 @@ When you build the project, Create React App will place the `public` folder cont
15161516
2. Install `serve` by running `npm install --save serve`.
15171517
15181518
3. Add this line to `scripts` in `package.json`:
1519-
1519+
15201520
```
15211521
"now-start": "serve build/",
15221522
```
1523-
1523+
15241524
4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this:
1525-
1525+
15261526
```
15271527
> Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
15281528
```
1529-
1529+
15301530
Paste that URL into your browser when the build is complete, and you will see your deployed app.
15311531
15321532
Details are available in [this article.](https://zeit.co/blog/now-static)

0 commit comments

Comments
 (0)