How to mock only the data except other information (isLoading, isError, etc.) returned from custom hook using useQuery?
Environment Next.js v14 Pages Router jest v29.7 @tanstack/react-query v5.36.0 Overview There is a custom hook called useUserInfo that wraps useQuery from tanstack-query, and It fetches user information. I want to test the useAccountMenu custom hook that uses that useUserInfo (each role of custom hooks will be explained later). The return value of useUserInfo, that will […]