Add 'Debugging tests on macOS' notes (#3724)

* Add 'Debugging tests on macOS' notes

* Add 'Debugging tests on macOS' notes (2)

* Add 'Debugging tests on macOS' notes (3)
This commit is contained in:
Jonas Galvez 2018-08-14 16:16:57 -03:00 committed by Sébastien Chopin
parent f184016197
commit 61c0976cd2

View File

@ -40,6 +40,12 @@ yarn test:unit
yarn test:e2e
```
## Debugging tests on macOS
Searching for `getPort()` will reveal it's used to start new Nuxt processes during tests. It's been seen to stop working on macOS at times and may require you to manually set a port for testing.
Another common issue is Nuxt processes that may hang in memory when running fixture tests. A ghost process will often prevent subsequent tests from working. Run `ps aux | grep -i node` to inspect any hanging test processes if you suspect this is happening.
## Opening PRs
- Please make sure your PR passes the lint test (`npm run lint`).