Skip to content

Commit bfe9054

Browse files
authored
Introduced new Troubleshooting section
Add better explanation how to solve facebook#713 and linked related Issues.
1 parent 75b93f9 commit bfe9054

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

+11-8
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,6 @@ The watcher includes an interactive command-line interface with the ability to r
675675
676676
![Jest watch mode](http://facebook.github.io/jest/img/blog/15-watch.gif)
677677
678-
>**A note for Mac OSX users**
679-
680-
>If you start `npm test` and the execution hangs there might be a problem with your watchman installation as discovered in #713 and #1767.
681-
682-
> To solve the issues first make sure you run the latest verision: `brew install watchman` (4.7.0).
683-
Then execute `launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist`. After these steps the issues should be resolved.
684-
685-
686678
### Version Control Integration
687679
688680
By default, when you run `npm test`, Jest will only run the tests related to files changed since the last commit. This is an optimization designed to make your tests runs fast regardless of how many tests you have. However it assumes that you don’t often commit the code that doesn’t pass the tests.
@@ -1072,6 +1064,17 @@ Install the Surge CLI if you haven't already by running `npm install -g surge`.
10721064
10731065
Note that in order to support routers that use HTML5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).
10741066
1067+
## Troubleshooting
1068+
1069+
### Jest hangs during execution on Mac OSX
1070+
1071+
If you start `npm test` and the execution hangs there might be a problem with your watchman installation as described in [#713](https://github.com/facebookincubator/create-react-app/issues/713).
1072+
Related Issues: [Jest #1767](https://github.com/facebook/jest/issues/1767), [ember-cli #6259](https://github.com/ember-cli/ember-cli/issues/6259) and [watchman #358](https://github.com/facebook/watchman/issues/358).
1073+
1074+
To solve the issues first make sure you run at least watchman 4.7.0 or newer. (`brew install watchman`).
1075+
1076+
Manually unloading the service with `launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist` is the workaround for this issue.
1077+
10751078
## Something Missing?
10761079
10771080
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/packages/react-scripts/template/README.md)

0 commit comments

Comments
 (0)