Creates the scenario within a standard describe()
call.
The description passed to the root describe()
call defining the scenario.
Acts as a describe.only()
call for the scenario.
The description passed to the root describe.only()
call defining the scenario.
Skips the entire scenario via describe.skip()
.
The description passed to the root describe.skip()
call defining the scenario.
Test scenario for a matcher.
It tests the matcher in isolation as well as when preceded by
.not
, with opposite outcomes:one expected to be ✅successful
one expected to ❌fail
To run its tests, you'll need to pass:
a subject - via subject(), promiseSubject() or functionSubject()
a matcher and its outcome for the given subject - via ✅passes() or ❌fails()
a failure message for one of the subtests - with a dedicated method for each case
The scenario and is tests are run as soon as the this information is passed.
Example