UNPKG

@testing-library/react-hooks

Version:

Simple and complete React hooks testing utilities that encourage good testing practices.

5 lines (4 loc) 348 B
/// <reference types="react" /> import { RendererProps, WrapperComponent } from '../types/react'; declare function createTestHarness<TProps, TResult>({ callback, setValue, setError }: RendererProps<TProps, TResult>, Wrapper?: WrapperComponent<TProps>, suspense?: boolean): (props?: TProps | undefined) => JSX.Element; export { createTestHarness };