import { ComponentType } from 'react'; import { QueryClient } from '@tanstack/react-query'; import { withReactQuery } from '@/react-tools/withReactQuery'; export function withTestQueryProvider( WrappedComponent: ComponentType ) { const testQueryClient = new QueryClient({ defaultOptions: { queries: { retry: false } }, }); return withReactQuery(WrappedComponent, testQueryClient); }