shlink-web-client/test/__helpers__/setUpTest.ts

9 lines
261 B
TypeScript
Raw Permalink Normal View History

import { render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
2023-02-18 13:11:01 +03:00
import type { ReactElement } from 'react';
export const renderWithEvents = (element: ReactElement) => ({
user: userEvent.setup(),
...render(element),
});