-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
33 lines (29 loc) · 903 Bytes
/
index.d.ts
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
import { FC, ReactElement, ReactNode } from "react";
import { ReactTestRenderer, ReactTestRendererJSON } from "react-test-renderer";
declare module "jest-snapshot-propifier" {}
type mockUtilTypeType = {
name: string;
element?: "span" | "div";
props?: Record<string, unknown>;
};
type GetChildOfMock = {
mock: FC<Record<string, unknown>>;
props?: Record<string, unknown>;
ctx?: Record<string, unknown>;
lastParent: string;
};
export function createMock(arg0: mockUtilTypeType | string): jest.Mock;
export function create(
component: ReactElement | JSX.Element | ReactNode,
options?: { flushEffects: boolean }
): ReactTestRenderer;
export function snapshotOf(
component: ReactElement | JSX.Element | ReactNode,
options?: { flushEffects: boolean }
): ReactTestRendererJSON | ReactTestRendererJSON[];
export function getChildOfMock({
mock,
props,
ctx,
lastParent,
}: GetChildOfMock): FC;