@ttoss/test-utils
Version:
This package provides a number of utilities and re-exports for testing using Jest, React Testing Library, and Relay.
15 lines (11 loc) • 626 B
TypeScript
/// <reference types="@testing-library/jest-dom" />
import { RenderOptions, renderHook } from '@testing-library/react';
export * from '@testing-library/react';
export { RenderOptions } from '@testing-library/react';
import * as React from 'react';
export * from '@emotion/jest';
export { default as userEvent } from '@testing-library/user-event';
declare const setOptions: (options: RenderOptions) => void;
declare const customRender: (ui: React.ReactElement, options?: RenderOptions) => any;
declare const customRenderHook: typeof renderHook;
export { customRender as render, customRenderHook as renderHook, setOptions };