Skip to content

Commit 9fd3da2

Browse files
committed
chore/MIG-6839 Fix type within testing-utils
1 parent 1afc85b commit 9fd3da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mocks/testing-utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RenderOptions } from '@testing-library/react';
1+
import type { RenderOptions, RenderResult } from '@testing-library/react';
22
import { render } from '@testing-library/react';
33
import type { PropsWithChildren, ReactElement } from 'react';
44
import { ThemeProvider } from '@emotion/react';
@@ -14,6 +14,6 @@ export const wrapper = ({ children }: PropsWithChildren) => (
1414
</ThemeProvider>
1515
);
1616

17-
const customRender = (ui: ReactElement, options?: RenderOptions) => render(ui, { wrapper, ...options });
17+
const customRender = (ui: ReactElement, options?: RenderOptions): RenderResult => render(ui, { wrapper, ...options });
1818
export * from '@testing-library/react';
1919
export { customRender as render };

0 commit comments

Comments
 (0)