From 7246427f326b5db813f8488d465d3f73e52e0a47 Mon Sep 17 00:00:00 2001 From: Christian Melchior Date: Wed, 16 May 2018 14:09:17 +0200 Subject: [PATCH] Add comment about tests --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59e175b5..7df524ff 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,14 @@ Some users have reported the Chrome debugging being too slow to use after integr You will need to install `nvm` to run the tests. Currently it is only possible to test using node 6, so please `nvm install 6.11.3`. -You can use `scripts/test.sh` to run the various tests. +The tests will spawn a new shell when running, so you need to make sure that new shell instances use the correct version of `npm`. On Mac you can add the following to your prefered shell setup: + +``` +export NVM_DIR="$HOME/.nvm" +. "$(brew --prefix nvm)/nvm.sh" +``` + +You can now use `scripts/test.sh` to run the various tests. You will need yarn installed on the machine. `test.sh` options