UNPKG

jest-enzyme

Version:
33 lines (31 loc) 1.24 kB
/// <reference types="react" /> declare namespace jest { interface ToMatchElementOptions { ignoreProps?: boolean; } interface Matchers<R> { toBeChecked(): void; toBeDisabled(): void; toBeEmptyRender(): void; toContainMatchingElement(selector: string): void; toContainMatchingElements(n: number, selector: string): void; toContainExactlyOneMatchingElement(selector: string): void; toContainReact(component: React.ReactElement<any>): void; toExist(): void; toHaveClassName(className: string): void; toHaveHTML(html: string): void; toHaveProp(propKey: object|string, propValue?: any): void; toHaveRef(refName: string): void; toHaveState(stateKey: object|string, stateValue?: any): void; toHaveStyle(styleKey: object|string, styleValue?: any): void; toHaveTagName(tagName: string): void; toHaveText(text: string): void; toHaveValue(value: any): void; toIncludeText(text: string): void; toMatchElement( element: React.ReactElement<any>, options?: ToMatchElementOptions, ): void; toMatchSelector(selector: string): void; } }