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

Function throwOnError

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

Source from the content-addressed store, hash-verified

721 describe('shouldThrowError', () => {
722 it('should return the result of executing throwOnError if throwOnError parameter is a function', () => {
723 const throwOnError = (error: Error) => error.message === 'test error'
724 expect(shouldThrowError(throwOnError, [new Error('test error')])).toBe(
725 true,
726 )

Callers 1

shouldThrowErrorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected