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
Description: I would like to be able to use expect.toMatch(/test-string-[\w-]+/) with regular expression support. This is equivalent to expect("test-string-A4454556565").toMatch(/test-string-[\w-]+/)
Possible solution:
I can currently use expect.toSatisfy((src) => /test-string-[\w-]+/.test(src)); as a workaround but it would be nice for the API to support this out-of-box and also produce a more meaningful message when it fails.
Thanks for lib!
The text was updated successfully, but these errors were encountered:
Feature Request
Description: I would like to be able to use
expect.toMatch(/test-string-[\w-]+/)
with regular expression support. This is equivalent toexpect("test-string-A4454556565").toMatch(/test-string-[\w-]+/)
Possible solution:
I can currently use
expect.toSatisfy((src) => /test-string-[\w-]+/.test(src));
as a workaround but it would be nice for the API to support this out-of-box and also produce a more meaningful message when it fails.Thanks for lib!
The text was updated successfully, but these errors were encountered: