You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? `An unhandled error occurred processing a request for the endpoint "${endpointName}".
195
-
In the case of an unhandled error, no tags will be "provided" or "invalidated". [Error: resultFrom(${endpointName})]`
196
-
: '',
197
-
)
192
+
193
+
constresult=(awaitstore.dispatch(thunk))satisfies
194
+
|undefined
195
+
|QuerySubState<any>
196
+
197
+
if(endpointName.includes('Throw')){
198
+
expect(consoleErrorSpy).toHaveBeenCalledOnce()
199
+
200
+
expect(consoleErrorSpy).toHaveBeenLastCalledWith(
201
+
`An unhandled error occurred processing a request for the endpoint "${endpointName}".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,
? `An unhandled error occurred processing a request for the endpoint "${endpointName}".
243
-
In the case of an unhandled error, no tags will be "provided" or "invalidated". [Error: resultFrom(${endpointName})]`
244
-
: '',
245
-
)
252
+
|{error: string|SerializedError}
253
+
254
+
if(endpointName.includes('Throw')){
255
+
expect(consoleErrorSpy).toHaveBeenCalledOnce()
256
+
257
+
expect(consoleErrorSpy).toHaveBeenLastCalledWith(
258
+
`An unhandled error occurred processing a request for the endpoint "${endpointName}".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,
`An unhandled error occurred processing a request for the endpoint "withNeither".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,
302
+
TypeError('endpointDefinition.queryFn is not a function'),
279
303
)
280
-
expect(result!.error).toEqual(
304
+
305
+
expect(result.error).toEqual(
281
306
expect.objectContaining({
282
307
message: 'endpointDefinition.queryFn is not a function',
`An unhandled error occurred processing a request for the endpoint "mutationWithNeither".
296
-
In the case of an unhandled error, no tags will be "provided" or "invalidated". [TypeError: endpointDefinition.queryFn is not a function]`,
319
+
|{error: string|SerializedError}
320
+
321
+
expect(consoleErrorSpy).toHaveBeenCalledOnce()
322
+
323
+
expect(consoleErrorSpy).toHaveBeenLastCalledWith(
324
+
`An unhandled error occurred processing a request for the endpoint "mutationWithNeither".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,
325
+
TypeError('endpointDefinition.queryFn is not a function'),
297
326
)
298
-
expect((resultasany).error).toEqual(
327
+
328
+
expect(result.error).toEqual(
299
329
expect.objectContaining({
300
330
message: 'endpointDefinition.queryFn is not a function',
`An unhandled error occurred processing a request for the endpoint "getMissingFirebaseUser".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,
0 commit comments