diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fb1de34..af4b8b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,7 +24,7 @@ npm test Alternatively, you can run tests in watch mode: ``` -npm test -- -w +npm test watch ``` ## Generating Documentation diff --git a/scripts/test b/scripts/test index 37953da..83ce893 100755 --- a/scripts/test +++ b/scripts/test @@ -10,7 +10,7 @@ if [ "$TARGET" = "node" ]; then exit $? fi -if [ "$1" = "--watch" ] || [ "$1" = "-w" ]; then +if [ "$1" = "watch" ]; then ./node_modules/.bin/chokidar './src/**/*.js' './spec/**/*.js' -c './scripts/test' else set -o pipefail