jest-enzyme
- Version 7.1.2
- Published
- 25.5 kB
- 3 dependencies
- MIT license
Install
npm i jest-enzyme
yarn add jest-enzyme
pnpm add jest-enzyme
Overview
Testing Matchers for Enzyme
Index
Namespaces
Namespaces
namespace jest
namespace jest {}
interface Matchers
interface Matchers<R, T> {}
method toBeChecked
toBeChecked: () => void;
method toBeDisabled
toBeDisabled: () => void;
method toBeEmptyRender
toBeEmptyRender: () => void;
method toContainExactlyOneMatchingElement
toContainExactlyOneMatchingElement: (selector: string) => void;
method toContainMatchingElement
toContainMatchingElement: (selector: string) => void;
method toContainMatchingElements
toContainMatchingElements: (n: number, selector: string) => void;
method toContainReact
toContainReact: (component: React.ReactElement<any>) => void;
method toExist
toExist: () => void;
method toHaveClassName
toHaveClassName: (className: string) => void;
method toHaveDisplayName
toHaveDisplayName: (tagName: string) => void;
method toHaveHTML
toHaveHTML: (html: string) => void;
method toHaveProp
toHaveProp: (propKey: object | string, propValue?: any) => void;
method toHaveRef
toHaveRef: (refName: string) => void;
method toHaveState
toHaveState: (stateKey: object | string, stateValue?: any) => void;
method toHaveStyle
toHaveStyle: (styleKey: object | string, styleValue?: any) => void;
method toHaveTagName
toHaveTagName: (tagName: string) => void;
method toHaveText
toHaveText: (text: string) => void;
method toHaveValue
toHaveValue: (value: any) => void;
method toIncludeText
toIncludeText: (text: string) => void;
method toMatchElement
toMatchElement: ( element: React.ReactElement<any>, options?: ToMatchElementOptions) => void;
method toMatchSelector
toMatchSelector: (selector: string) => void;
interface ToMatchElementOptions
interface ToMatchElementOptions {}
property ignoreProps
ignoreProps?: boolean;
Package Files (1)
Dependencies (3)
Dev Dependencies (3)
Peer Dependencies (2)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-enzyme
.
- Markdown[](https://www.jsdocs.io/package/jest-enzyme)
- HTML<a href="https://www.jsdocs.io/package/jest-enzyme"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2162 ms. - Missing or incorrect documentation? Open an issue for this package.