externalMochaConfig
Index
Properties
externaloptionalconfig
externaloptionalallow-uncaught
Allow uncaught errors to propagate.
externaloptionalasync-only
Require all tests to use a callback (async) or return a Promise.
externaloptionalbail
Abort ("bail") after first test failure.
externaloptionalcheck-leaks
Check for global variable leaks.
externaloptionaldelay
Delay initial execution of root suite.
externaloptionalfgrep
Only run tests containing this string.
Note: MochaConfig.fgrep
and MochaConfig.grep
are mutually exclusive.
externaloptionalfile
Files to be loaded prior to root suite execution.
externaloptionalforbid-only
Fail if exclusive test(s) encountered.
externalforbid-pending
Fail if pending test(s) encountered.
externaloptionalglobal
List of allowed global variables.
externaloptionalgrep
Only run tests matching this string or regexp.
Note: MochaConfig.grep
and MochaConfig.fgrep
are mutually exclusive.
externaloptionalgrowl
Enable Growl notifications.
externaloptionalinvert
Inverts MochaConfig.grep
and MochaConfig.fgrep
matches.
externaloptionalrequire
Require module.
externaloptionalretries
Retry failed tests this many times.
externaloptionalslow
Specify "slow" test threshold (in milliseconds).
externaloptionaltimeout
Specify test timeout threshold (in milliseconds).
Note: setting this property to 0 means "no timeout".
externaloptionalui
externaloptionalstrict
When set to true
, a skipped test is considered a failure.
Configuration object for the Mocha test runner.
Learn more
.mocharc.yml
example