shlink-web-client/shlink-frontend-kit/test/__helpers__/setUpTest.ts
2023-08-04 09:24:21 +02:00

8 lines
261 B
TypeScript

import { render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import type { ReactElement } from 'react';
export const renderWithEvents = (element: ReactElement) => ({
user: userEvent.setup(),
...render(element),
});