File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/pages/AccountSettings/tabs/DeletionCard Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { QueryClient , QueryClientProvider } from '@tanstack/react-query'
1
2
import { render , screen } from '@testing-library/react'
2
3
import { MemoryRouter , Route } from 'react-router-dom'
3
4
4
5
import DeletionCard from './DeletionCard'
5
6
7
+ const queryClient = new QueryClient ( {
8
+ defaultOptions : { queries : { retry : false } } ,
9
+ } )
10
+
6
11
const wrapper : React . FC < React . PropsWithChildren > = ( { children } ) => (
7
- < MemoryRouter initialEntries = { [ '/account/gh/test-user' ] } >
8
- < Route path = "/account/:provider/:owner" > { children } </ Route >
9
- </ MemoryRouter >
12
+ < QueryClientProvider client = { queryClient } >
13
+ < MemoryRouter initialEntries = { [ '/account/gh/test-user' ] } >
14
+ < Route path = "/account/:provider/:owner" > { children } </ Route >
15
+ </ MemoryRouter >
16
+ </ QueryClientProvider >
10
17
)
11
18
12
19
describe ( 'DeletionCard' , ( ) => {
You can’t perform that action at this time.
0 commit comments