-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jasmine matchers feature parity #8681
Comments
Duplicate of #3293
We don't use jasmine's matchers |
Is there a way to use them with expect? Or could you fix yours to work better? |
No, they're not pluggable. You can use chai or the linked |
Could you just fix yours? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🚀 Feature Proposal
Use output from second parameter in matchers like in Jasmine.
Motivation
This lets me write efficient code but still know exactly which object had a mismatch.
Example
In Jasmine, I can do something like this:
for (var i=0, i<myObjects.length; i++) {
myObj = myObjects[i];
expect myObj.someprop.toEqual(1, index + ' ' + myObj.name);
}
Pitch
You're using Jasmine under the hood anyway--why would you make your matchers so much less capable than theirs?
The text was updated successfully, but these errors were encountered: