Skip to content

Commit 8f9ec75

Browse files
aryaemami59markerikson
authored andcommitted
Update wrapper props in useDispatch.spec.tsx to resolve type error
1 parent 0985471 commit 8f9ec75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hooks/useDispatch.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('React', () => {
3232
const useCustomDispatch = createDispatchHook(nestedContext)
3333
const { result } = renderHook(() => useDispatch(), {
3434
// eslint-disable-next-line react/prop-types
35-
wrapper: ({ children, ...props }) => (
35+
wrapper: ({ children, ...props }: Omit<ProviderProps, 'store'>) => (
3636
<ProviderMock {...props} store={store}>
3737
<ProviderMock context={nestedContext} store={store2}>
3838
{children}
@@ -45,7 +45,7 @@ describe('React', () => {
4545

4646
const { result: result2 } = renderHook(() => useCustomDispatch(), {
4747
// eslint-disable-next-line react/prop-types
48-
wrapper: ({ children, ...props }) => (
48+
wrapper: ({ children, ...props }: Omit<ProviderProps, 'store'>) => (
4949
<ProviderMock {...props} store={store}>
5050
<ProviderMock context={nestedContext} store={store2}>
5151
{children}

0 commit comments

Comments
 (0)