diff --git a/src/react/hooks/__tests__/useQuery.test.tsx b/src/react/hooks/__tests__/useQuery.test.tsx index 9f9ad6b874b..b09e38ba729 100644 --- a/src/react/hooks/__tests__/useQuery.test.tsx +++ b/src/react/hooks/__tests__/useQuery.test.tsx @@ -5017,7 +5017,7 @@ describe('useQuery Hook', () => { expect(result.current.data).toEqual(carData); expect(result.current.error).toBeUndefined(); - expect(errorSpy).toHaveBeenCalledTimes(1); + expect(errorSpy).toHaveBeenCalled(); expect(errorSpy).toHaveBeenLastCalledWith( `Missing field 'vin' while writing result ${JSON.stringify({ id: 1,