Async callback function used for tests and hooks.
Callback function used for tests and hooks.
Execute after running tests.
Execute after each test case.
Execute before running tests.
Execute before each test case.
Describe a "suite" containing nested suites and tests.
Describes a test case.
Execute before each test case.
Describe a "suite" containing nested suites and tests.
Execute before running tests.
Execute after running tests.
Execute after each test case.
Describes a test case.
Describes a pending test case.
Add test file
.
Enable uncaught errors to propagate (in browser).
Makes all tests async (accepting a callback)
Enable or disable bailing on the first failure.
Enable global leak checking.
Delay root suite execution.
Enable timeouts.
Escape string and add it to grep as a RegExp.
Tests marked only fail the suite
Pending tests and tests marked skip fail the suite
Display long stack-trace on failing
Ignore globals
array or string.
Add regexp to grep, if re
is a string it is escaped.
Enable growl support.
Do not show diffs at all.
Ignore global leaks.
Invert .grep()
matches.
Load registered files.
Disable syntax highlighting (in browser).
Set reporter to one of the built-in reporters.
Set reporter to the provided constructor, one of the built-in reporters, or loads a reporter
from a module path. Defaults to "spec"
.
Set the number of times to retry failed tests.
Run tests and invoke fn()
when complete.
Note that run
relies on Node's require
to execute
the test interface functions and will be subject to the
cache - if the files are already in the require
cache,
they will effectively be skipped. Therefore, to run tests
multiple times or to run tests in files that are already
in the require
cache, make sure to clear them from the
cache first in whichever manner best suits your needs.
Set slowness threshold in milliseconds.
Set the timeout in milliseconds.
Set test UI to one of the built-in test interfaces.
Set test UI to one of the built-in test interfaces or loads a test interface from a module
path. Defaults to "bdd"
.
Emit color output.
Use inline diffs rather than +/-.
Triggers root suite execution.
Generated using TypeDoc
Mocha API
https://mochajs.org/api/mocha