jest-dom icon indicating copy to clipboard operation
jest-dom copied to clipboard

Fix typo in matchers.d.ts

Open Demianeen opened this issue 11 months ago • 0 comments

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?

Demianeen avatar Dec 09 '24 10:12 Demianeen