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
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
A custom matcher add using expect.extend needs to synchronously return an object containing pass and message fields.
What is the expected behavior?
Allow async functions to be used as matchers that return a promise which eventually resolves to an object containing pass and message. These would be subject to the usual timeout.
My use case would be to execute async operations on a custom snapshot inside the matcher in a way that's transparent to the user.
TimKnipe, dowsanjack, testerez, giodamelio, Chudesnov and 6 more