From e1baa2316de2e3b0df6840bfc7601471327965ab Mon Sep 17 00:00:00 2001 From: Ben Glassman Date: Sat, 28 Apr 2018 09:08:19 -0400 Subject: [PATCH 1/3] Clarify docs for watch that it watches files in the CWD --- bin/_mocha | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/_mocha b/bin/_mocha index fe1cdcc8af..080cfbbece 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -180,7 +180,7 @@ program `specify user-interface (${interfaceNames.join('|')})`, 'bdd' ) - .option('-w, --watch', 'watch files for changes') + .option('-w, --watch', 'watch files in the CWD 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 a5acfc9945..252435deec 100644 --- a/docs/index.md +++ b/docs/index.md @@ -763,7 +763,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) - -w, --watch watch files for changes + -w, --watch watch files in the CWD 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 From 7f5fc9fbd14e1782cbca84316a2fe2917b47ed20 Mon Sep 17 00:00:00 2001 From: Ben Glassman Date: Mon, 30 Apr 2018 14:55:08 -0400 Subject: [PATCH 2/3] s/CWD/current working directory --- bin/_mocha | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/_mocha b/bin/_mocha index 080cfbbece..c46ce71c03 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -180,7 +180,7 @@ program `specify user-interface (${interfaceNames.join('|')})`, 'bdd' ) - .option('-w, --watch', 'watch files in the CWD 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 252435deec..8d65a209c2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -763,7 +763,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) - -w, --watch watch files in the CWD 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 From b1ec942081b6759f5ea983bd6c07202825e0ea1a Mon Sep 17 00:00:00 2001 From: Outsider Date: Tue, 9 Oct 2018 03:11:09 +0900 Subject: [PATCH 3/3] fix lint errors Signed-off-by: Outsider --- bin/_mocha | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/_mocha b/bin/_mocha index 0bd5773336..41e9871b76 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -165,7 +165,10 @@ program `specify user-interface (${interfaceNames.join('|')})`, 'bdd' ) - .option('-w, --watch', 'watch files in the current working directory 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(