MCPcopy
hub / github.com/TanStack/query / throwOnError

Function throwOnError

packages/query-core/src/__tests__/utils.test.tsx:538–538  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

536 describe('shouldThrowError', () => {
537 it('should return the result of executing throwOnError if throwOnError parameter is a function', () => {
538 const throwOnError = (error: Error) => error.message === 'test error'
539 expect(shouldThrowError(throwOnError, [new Error('test error')])).toBe(
540 true,
541 )

Callers 1

shouldThrowErrorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…