diff --git a/client/utils/test-utils.jsx b/client/utils/test-utils.tsx similarity index 67% rename from client/utils/test-utils.jsx rename to client/utils/test-utils.tsx index 81ff41ba9e5..57728ef6ca2 100644 --- a/client/utils/test-utils.jsx +++ b/client/utils/test-utils.tsx @@ -1,10 +1,10 @@ -import React from 'react'; +import React, { type ReactElement } from 'react'; import { render as rtlRender } from '@testing-library/react'; import { Provider } from 'react-redux'; +import type { Store } from 'redux'; -function render(ui, store) { - // eslint-disable-next-line react/prop-types - function Wrapper({ children }) { +function render(ui: ReactElement, store: Store) { + function Wrapper({ children }: { children: ReactElement }) { return {children}; } return rtlRender(ui, { wrapper: Wrapper });