Skip to content

Commit

Permalink
fix(_mocha): Update '--no-timeouts' argument description (#3546)
Browse files Browse the repository at this point in the history
Previously undocumented that use of `--inspect` would disable timeouts.

Fixes #3519
  • Loading branch information
plroebuck committed Nov 2, 2018
1 parent b9b3ac0 commit a371e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bin/_mocha
Expand Up @@ -218,7 +218,10 @@ program
'--exit',
'force shutdown of the event loop after test run: mocha will call process.exit'
)
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
.option(
'--no-timeouts',
'disables timeouts, given implicitly with --debug/--inspect'
)
.option('--no-warnings', 'silence all node process warnings')
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')
.option('--perf-basic-prof', 'enable perf linux profiler (basic support)')
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -818,7 +818,7 @@ Options:
--interfaces output provided interfaces and exit
--no-deprecation silence deprecation warnings
--exit force shutdown of the event loop after test run: mocha will call process.exit
--no-timeouts disables timeouts, given implicitly with --debug
--no-timeouts disables timeouts, given implicitly with --debug/--inspect
--no-warnings silence all node process warnings
--opts <path> specify opts path (default: "test/mocha.opts")
--perf-basic-prof enable perf linux profiler (basic support)
Expand Down

0 comments on commit a371e2f

Please sign in to comment.