UNPKG

874 BTypeScriptView Raw
1/// <reference types="react" />
2
3declare namespace jest {
4 interface Matchers<R> {
5 toBeChecked(): void;
6 toBeDisabled(): void;
7 toBeEmpty(): void;
8 toBePresent(): void;
9 toContainReact(component: React.ReactElement<any>): void;
10 toHaveClassName(className: string): void;
11 toHaveHTML(html: string): void;
12 toHaveProp(propKey: string, propValue?: any): void;
13 toHaveRef(refName: string): void;
14 toHaveState(stateKey: string, stateValue?: any): void;
15 toHaveStyle(styleKey: string, styleValue?: any): void;
16 toHaveTagName(tagName: string): void;
17 toHaveText(text: string): void;
18 toIncludeText(text: string): void;
19 toHaveValue(value: any): void;
20 toMatchElement(element: React.ReactElement<any>): void;
21 toMatchSelector(selector: string): void;
22 }
23}