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

Method toBeEnabled

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

* @description * Allows you to check whether an element is not disabled from the user's perspective. * * Works like `not.toBeDisabled()`. * * Use this matcher to avoid double negation in your tests. * @example * <button * data-testid="button" * type="submit" * >

()

Source from the content-addressed store, hash-verified

138 * @see https://vitest.dev/api/browser/assertions#tobeenabled
139 */
140 toBeEnabled(): R
141 /**
142 * @description
143 * Check if a form element, or the entire `form`, is currently invalid.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected