You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocha sets the value of the this variable for the functions passed to describe and test/it.
This allows to dynamically configure the behaviour of the tests (skip tests, define timeout, ...)
I wasn't able to find a "structured" API documentation. There are more methods available when checking the source code, but supporting only the documented methods would be a good start.
The text was updated successfully, but these errors were encountered:
Mocha sets the value of the
this
variable for the functions passed todescribe
andtest
/it
.This allows to dynamically configure the behaviour of the tests (skip tests, define timeout, ...)
Their website mentions the following methods:
this.skip
this.retries
this.slow
this.timeout
I wasn't able to find a "structured" API documentation. There are more methods available when checking the source code, but supporting only the documented methods would be a good start.
The text was updated successfully, but these errors were encountered: