From 61c0976cd2ecc932aa26b264f574364bb73ebc0f Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Tue, 14 Aug 2018 16:16:57 -0300 Subject: [PATCH] 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) --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5369f4b690..0b8a425cbd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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`).