MCPcopy
hub / github.com/vitest-dev/vitest / toBeInvalid

Method toBeInvalid

packages/browser/jest-dom.d.ts:158–158  ·  view source on GitHub ↗

* @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

()

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected