-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathglobal.d.ts
More file actions
34 lines (32 loc) · 1.25 KB
/
global.d.ts
File metadata and controls
34 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference types="@testing-library/jest-dom" />
import '@testing-library/jest-dom';
declare global {
namespace jest {
interface Matchers<R = void> {
toBeInTheDocument(): R;
toBeVisible(): R;
toBeEmpty(): R;
toBeEmptyDOMElement(): R;
toBeDisabled(): R;
toBeEnabled(): R;
toBeInvalid(): R;
toBeRequired(): R;
toBeValid(): R;
toContainElement(element: HTMLElement | SVGElement | null): R;
toContainHTML(htmlText: string): R;
toHaveAccessibleDescription(expectedAccessibleDescription?: string | RegExp): R;
toHaveAccessibleName(expectedAccessibleName?: string | RegExp): R;
toHaveAttribute(attr: string, value?: unknown): R;
toHaveClass(...classNames: string[]): R;
toHaveFocus(): R;
toHaveFormValues(expectedValues: Record<string, unknown>): R;
toHaveStyle(css: string | Record<string, unknown>): R;
toHaveTextContent(text: string | RegExp, options?: { normalizeWhitespace: boolean }): R;
toHaveValue(value?: string | string[] | number | null): R;
toHaveDisplayValue(value: string | RegExp | Array<string | RegExp>): R;
toBeChecked(): R;
toBePartiallyChecked(): R;
toHaveErrorMessage(text: string | RegExp): R;
}
}
}