UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

20 lines (19 loc) 912 B
import '@testing-library/jest-dom/extend-expect'; import { axe } from 'jest-axe'; import type { RenderOptions } from '@testing-library/react'; import type { ReactElement } from 'react'; import { renderHook, act } from '@testing-library/react-hooks'; declare function render(ui: ReactElement, options?: Omit<RenderOptions, 'queries'>): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>; /** * HOC to wrap a component with its state hook * @example * // Cmp has the useCmp state hook * const StatefulCpm = withState(Cmp, () => useCmpState({ isSelected: false })) */ declare function withState(Component: any, useStateHook: () => any): { (props: any): JSX.Element; displayName: any; }; declare function jestMatchMedia(): any; export * from '@testing-library/react'; export { render, withState, axe, jestMatchMedia, renderHook, act };