MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / executeFailingQuery

Function executeFailingQuery

__tests__/query-client-config.behavior.test.ts:66–85  ·  view source on GitHub ↗
(
  client: QueryClient,
  error: unknown,
  {
    meta,
    queryKey = ["behavior", "failure"],
  }: {
    meta?: Record<string, unknown>;
    queryKey?: readonly unknown[];
  } = {},
)

Source from the content-addressed store, hash-verified

64}
65
66function 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
87function executeFailingMutation(
88 client: QueryClient,

Calls

no outgoing calls

Tested by

no test coverage detected