Expect a promise to be pending, i.e. the promise is neither resolved nor rejected.
Expect a promise to be rejected.
Expect a promise to be rejected with a value equal to the expected, using deep equality comparison.
Value that the promise is expected to be rejected with.
Expect a promise to be rejected with a value matched to the expected.
Error constructor the object that was thrown needs to be an instance of. If not provided, Error will be used.
The message that should be set on the thrown Error.
Expect a promise to be rejected with a value matched to the expected.
The message that should be set on the thrown Error.
Expect a promise to be resolved.
Expect a promise to be resolved to a value equal to the expected, using deep equality comparison.
Value that the promise is expected to resolve to.
Add some context for an expect.
Additional context to show when the matcher fails.
Generated using TypeDoc
Invert the matcher following this expect.