Replies: 1 comment 2 replies
-
We didn't get around to loose matchers in v5. It'll likely be in a follow up release. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using chai-things and chai-like to get fuzzy partial matches of arrays containing objects. Both of these don't look like they'll get updates for v5 anytime soon.
Here the acutal value is an object with various keys and we're testing that one of the keys has a string which matches a regex.
Here, we're getting an array of objects with various keys and one of the keys should match. (in this case regex wasn't necessary)
I saw #644 mentioned chai v5 having loose matchers for the deep assertions but wasn't able to get something like that to work.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions