UNPKG

@navinc/base-react-components

Version:
12 lines (11 loc) 526 B
import { RenderResult } from '@testing-library/react'; import { ComponentType, JSX, ReactNode } from 'react'; import { MemoryHistory } from 'history'; export declare const withAppContext: <T extends JSX.IntrinsicAttributes>(ComponentIn: ComponentType<T>) => (props: T) => import("react/jsx-runtime").JSX.Element; export declare const renderWithContext: (ui: ReactNode, options?: { initialEntries?: string[]; initialIndex?: number; routePath?: string; }) => RenderResult & { history: MemoryHistory<unknown>; };