Closed shibukawa closed 3 years ago
What:
Fix findByRole() and findAllByRole() type definition to check role name as same as upstream @testing-library/dom does.
Why:
Current type definition uses Matcher type this is for jQuery selector.
How:
Switch role name type to ByRoleMatcher that is used in @testing-library/dom.
Checklist:
I confirmed VSCode shows role names in completion word list.
:tada: This PR is included in version 7.0.4 :tada:
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
Thank you for your great product.
What:
Fix findByRole() and findAllByRole() type definition to check role name as same as upstream @testing-library/dom does.
Why:
Current type definition uses Matcher type this is for jQuery selector.
How:
Switch role name type to ByRoleMatcher that is used in @testing-library/dom.
Checklist:
I confirmed VSCode shows role names in completion word list.