mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-24 09:58:21 +03:00
9 lines
267 B
TypeScript
9 lines
267 B
TypeScript
|
import { render } from '@testing-library/react';
|
||
|
import userEvent from '@testing-library/user-event/index';
|
||
|
import type { ReactElement } from 'react';
|
||
|
|
||
|
export const renderWithEvents = (element: ReactElement) => ({
|
||
|
user: userEvent.setup(),
|
||
|
...render(element),
|
||
|
});
|