From cd25555815d02cba39e8e7a96516acc70b3ec90d Mon Sep 17 00:00:00 2001 From: Ben Glassman Date: Mon, 8 Oct 2018 14:46:55 -0400 Subject: [PATCH] Clarify docs for watch that it watches files in the CWD (#3361) * Clarify docs for watch that it watches files in the CWD * s/CWD/current working directory --- bin/_mocha | 5 ++++- docs/index.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/_mocha b/bin/_mocha index 7e84a3e507..41e9871b76 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -165,7 +165,10 @@ program `specify user-interface (${interfaceNames.join('|')})`, 'bdd' ) - .option('-w, --watch', 'watch files for changes') + .option( + '-w, --watch', + 'watch files in the current working directory for changes' + ) .option('--check-leaks', 'check for global variable leaks') .option('--full-trace', 'display the full stack trace') .option( diff --git a/docs/index.md b/docs/index.md index 2e52ada509..5fae36b634 100644 --- a/docs/index.md +++ b/docs/index.md @@ -802,7 +802,7 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass -s, --slow "slow" test threshold in milliseconds [75] -t, --timeout set test-case timeout in milliseconds [2000] -u, --ui specify user-interface (bdd|tdd|qunit|exports) (default: bdd) - -w, --watch watch files for changes + -w, --watch watch files in the current working directory for changes --check-leaks check for global variable leaks --full-trace display the full stack trace --compilers :,... use the given module(s) to compile files (default: )