Skip to content

Commit 7941c9e

Browse files
authored
update docs with latest cli options (mochajs#3432)
1 parent 59d5850 commit 7941c9e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,6 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass
740740
```text
741741
Usage: mocha [debug] [options] [files]
742742
743-
744743
Options:
745744
746745
-V, --version output the version number
@@ -749,7 +748,7 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass
749748
-C, --no-colors force disabling of colors
750749
-G, --growl enable growl notification support
751750
-O, --reporter-options <k=v,k2=v2,...> reporter-specific options
752-
-R, --reporter <name> specify the reporter to use
751+
-R, --reporter <name> specify the reporter to use (default: spec)
753752
-S, --sort sort test files
754753
-b, --bail bail after first test failure
755754
-d, --debug enable node's debugger, synonym for node --debug
@@ -760,27 +759,27 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass
760759
-r, --require <name> require the given module
761760
-s, --slow <ms> "slow" test threshold in milliseconds [75]
762761
-t, --timeout <ms> set test-case timeout in milliseconds [2000]
763-
-u, --ui <name> specify user-interface (bdd|tdd|qunit|exports)
762+
-u, --ui <name> specify user-interface (bdd|tdd|qunit|exports) (default: bdd)
764763
-w, --watch watch files for changes
765764
--check-leaks check for global variable leaks
766765
--full-trace display the full stack trace
767-
--compilers <ext>:<module>,... use the given module(s) to compile files
766+
--compilers <ext>:<module>,... use the given module(s) to compile files (default: )
768767
--debug-brk enable node's debugger breaking on the first line
769-
--globals <names> allow the given comma-delimited global [names]
768+
--globals <names> allow the given comma-delimited global [names] (default: )
770769
--es_staging enable all staged features
771-
--file <file> include a file to be ran during the suite [file]
772770
--harmony<_classes,_generators,...> all node --harmony* flags are available
773771
--preserve-symlinks Instructs the module loader to preserve symbolic links when resolving and caching modules
774772
--icu-data-dir include ICU data
775773
--inline-diffs display actual/expected differences inline within each string
774+
--no-diff do not show a diff on failure
776775
--inspect activate devtools in chrome
777776
--inspect-brk activate devtools in chrome and break on the first line
778777
--interfaces display available interfaces
779778
--no-deprecation silence deprecation warnings
780779
--exit force shutdown of the event loop after test run: mocha will call process.exit
781780
--no-timeouts disables timeouts, given implicitly with --debug
782781
--no-warnings silence all node process warnings
783-
--opts <path> specify opts path
782+
--opts <path> specify opts path (default: test/mocha.opts)
784783
--perf-basic-prof enable perf linux profiler (basic support)
785784
--napi-modules enable experimental NAPI modules
786785
--prof log statistical profiling information
@@ -793,14 +792,15 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass
793792
--trace-deprecation show stack traces on deprecations
794793
--trace-warnings show stack traces on node process warnings
795794
--use_strict enforce strict mode
796-
--watch-extensions <ext>,... additional extensions to monitor with --watch
795+
--watch-extensions <ext>,... specify extensions to monitor with --watch (default: js)
797796
--delay wait for async suite definition
798797
--allow-uncaught enable uncaught errors to propagate
799798
--forbid-only causes test marked with only to fail the suite
800799
--forbid-pending causes pending tests and test marked with skip to fail the suite
800+
--file <file> include a file to be ran during the suite (default: )
801+
--exclude <file> a file or glob pattern to ignore (default: )
801802
-h, --help output usage information
802803
803-
804804
Commands:
805805
806806
init <path> initialize a client-side mocha setup at <path>

0 commit comments

Comments
 (0)