12345678910111213141516171819202122232425 |
- import merge from 'lodash/merge';
- import {DEFAULT_QUERY_CLIENT_CONFIG, QueryClient} from 'sentry/utils/queryClient';
- export const makeTestQueryClient = () =>
- new QueryClient(
- merge({}, DEFAULT_QUERY_CLIENT_CONFIG, {
- defaultOptions: {
- queries: {
-
- retry: false,
- },
- mutations: {
-
- retry: false,
- },
- },
-
- logger: {
- log: () => {},
- warn: () => {},
- error: () => {},
- },
- })
- );
|