* @description * Check if a form element, or the entire `form`, is currently invalid. * * An `input`, `select`, `textarea`, or `form` element is invalid if it has an `aria-invalid` attribute with no * value or a value of "true", or if the result of `checkValidity()` is false. * @examp
()
| 156 | * @see https://vitest.dev/api/browser/assertions#tobeinvalid |
| 157 | */ |
| 158 | toBeInvalid(): R |
| 159 | /** |
| 160 | * @description |
| 161 | * This allows you to check if a form element is currently required. |