Skip to content

Commit 5ec3010

Browse files
benglassoutsideris
authored andcommitted
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
1 parent 04469bf commit 5ec3010

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bin/_mocha

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ program
165165
`specify user-interface (${interfaceNames.join('|')})`,
166166
'bdd'
167167
)
168-
.option('-w, --watch', 'watch files for changes')
168+
.option(
169+
'-w, --watch',
170+
'watch files in the current working directory for changes'
171+
)
169172
.option('--check-leaks', 'check for global variable leaks')
170173
.option('--full-trace', 'display the full stack trace')
171174
.option(

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass
802802
-s, --slow <ms> "slow" test threshold in milliseconds [75]
803803
-t, --timeout <ms> set test-case timeout in milliseconds [2000]
804804
-u, --ui <name> specify user-interface (bdd|tdd|qunit|exports) (default: bdd)
805-
-w, --watch watch files for changes
805+
-w, --watch watch files in the current working directory for changes
806806
--check-leaks check for global variable leaks
807807
--full-trace display the full stack trace
808808
--compilers <ext>:<module>,... use the given module(s) to compile files (default: )

0 commit comments

Comments
 (0)