jest-dom
jest-dom copied to clipboard
Fix typo in matchers.d.ts
What:
Fixed a typo in toBeValid method
Why:
I am relatively new to aria and was confused when toBeValid method said that the element is invalid when aria-invalid is set to false
How:
Checklist:
- [x] Documentation
- [x] Tests
- [x] Updated Type Definitions
- [x] Ready to be merged
Should we maybe also mention in the toBeValid/Invalid doc that the browser’s built-in validation and checkValidity() method do not rely on aria-invalid?