mirror of
https://git.um-react.app/um/um-react.git
synced 2026-10-21 22:13:01 +00:00
chore: make eslint happy
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user