chore: make eslint happy

This commit is contained in:
鲁树人
2023-05-18 00:04:20 +01:00
parent 3298b29dbf
commit 880a3c67fe
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import { AppStore, RootState, setupStore } from '~/store';
// Adapted from: https://redux.js.org/usage/writing-tests
// eslint-disable-next-line react-refresh/only-export-components
export * from '@testing-library/react';
export interface ExtendedRenderOptions extends RenderOptions {
@@ -17,7 +18,7 @@ export function renderWithProviders(
ui: React.ReactElement,
{ preloadedState = {}, store = setupStore(preloadedState), ...renderOptions }: ExtendedRenderOptions = {}
) {
function Wrapper({ children }: PropsWithChildren<{}>): JSX.Element {
function Wrapper({ children }: PropsWithChildren<unknown>): JSX.Element {
return <Provider store={store}>{children}</Provider>;
}