MCPcopy Create free account
hub / github.com/TanStack/query / throwOnError

Function throwOnError

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

Source from the content-addressed store, hash-verified

660 describe('shouldThrowError', () => {
661 it('should return the result of executing throwOnError if throwOnError parameter is a function', () => {
662 const throwOnError = (error: Error) => error.message === 'test error'
663 expect(shouldThrowError(throwOnError, [new Error('test error')])).toBe(
664 true,
665 )

Callers 1

shouldThrowErrorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected