Commit cb41a76e authored by Joseph Race's avatar Joseph Race Committed by Dan Abramov
Browse files

Update information in User Guide for Enzyme dependency (#1982)

parent 53943a85
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 5 additions and 5 deletions
+5 -5
......@@ -974,7 +974,7 @@ When you encounter bugs caused by changing components, you will gain a deeper in
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:
```sh
npm install --save-dev enzyme react-addons-test-utils
npm install --save-dev enzyme react-test-renderer
```
```js
......@@ -1518,17 +1518,17 @@ When you build the project, Create React App will place the `public` folder cont
2. Install `serve` by running `npm install --save serve`.
3. Add this line to `scripts` in `package.json`:
```
"now-start": "serve build/",
```
4. Run `now` from your project directory. You will see a **now.sh** URL in your output like this:
```
> Ready! https://your-project-dirname-tpspyhtdtk.now.sh (copied to clipboard)
```
Paste that URL into your browser when the build is complete, and you will see your deployed app.
Details are available in [this article.](https://zeit.co/blog/now-static)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment