(
client: QueryClient,
error: unknown,
{
meta,
queryKey = ["behavior", "failure"],
}: {
meta?: Record<string, unknown>;
queryKey?: readonly unknown[];
} = {},
)
| 64 | } |
| 65 | |
| 66 | function executeFailingQuery( |
| 67 | client: QueryClient, |
| 68 | error: unknown, |
| 69 | { |
| 70 | meta, |
| 71 | queryKey = ["behavior", "failure"], |
| 72 | }: { |
| 73 | meta?: Record<string, unknown>; |
| 74 | queryKey?: readonly unknown[]; |
| 75 | } = {}, |
| 76 | ) { |
| 77 | return client.fetchQuery({ |
| 78 | queryKey, |
| 79 | queryFn: async () => { |
| 80 | throw error; |
| 81 | }, |
| 82 | meta, |
| 83 | retry: false, |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | function executeFailingMutation( |
| 88 | client: QueryClient, |
no outgoing calls
no test coverage detected