Skip to content

Commit a371e2f

Browse files
authored
fix(_mocha): Update '--no-timeouts' argument description (#3546)
Previously undocumented that use of `--inspect` would disable timeouts. Fixes #3519
1 parent b9b3ac0 commit a371e2f

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
@@ -218,7 +218,10 @@ program
218218
'--exit',
219219
'force shutdown of the event loop after test run: mocha will call process.exit'
220220
)
221-
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
221+
.option(
222+
'--no-timeouts',
223+
'disables timeouts, given implicitly with --debug/--inspect'
224+
)
222225
.option('--no-warnings', 'silence all node process warnings')
223226
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')
224227
.option('--perf-basic-prof', 'enable perf linux profiler (basic support)')

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ Options:
818818
--interfaces output provided interfaces and exit
819819
--no-deprecation silence deprecation warnings
820820
--exit force shutdown of the event loop after test run: mocha will call process.exit
821-
--no-timeouts disables timeouts, given implicitly with --debug
821+
--no-timeouts disables timeouts, given implicitly with --debug/--inspect
822822
--no-warnings silence all node process warnings
823823
--opts <path> specify opts path (default: "test/mocha.opts")
824824
--perf-basic-prof enable perf linux profiler (basic support)

0 commit comments

Comments
 (0)