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

Method toBeValid

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

* @description * Allows you to check if a form element is currently required. * * An `input`, `select`, `textarea`, or `form` element is invalid if it has an `aria-invalid` attribute with no * value or a value of "false", or if the result of `checkValidity()` is true. * @example *

()

Source from the content-addressed store, hash-verified

191 * @see https://vitest.dev/api/browser/assertions#tobevalid
192 */
193 toBeValid(): R
194 /**
195 * @description
196 * Allows you to assert whether an element contains another element as a descendant or not.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected