-
Notifications
You must be signed in to change notification settings - Fork 399
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
fix: Updates deprecated matchers info #378
Conversation
Codecov Report
@@ Coverage Diff @@
## main #378 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 26 26
Lines 614 615 +1
Branches 225 225
=========================================
+ Hits 614 615 +1
Continue to review full report at Codecov.
|
🎉 This PR is included in version 5.14.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
||
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description | ||
export function toHaveDescription(htmlElement, checkWith) { | ||
deprecate( | ||
'toBeInTheDOM', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 'toHaveDescription'
What:
Properly deprecates
toHaveDescription
in favour oftoHaveAccessibleDescription
. This PR also updates the README on other deprecation-related info (e.g.toBeEmpty
was deprecated, but it was not reflected in the README).While this gets reviewed and merged, I'll update the type definitions in
DefinitelyTyped
.Pinging various reviewers, but only one is enough. Thanks in advance.
Checklist: