79464183

Date: 2025-02-24 16:09:26
Score: 1.5
Natty:
Report link

Based on answer from @Vencovsky I think today answer will be:

import { renderHook } from '@testing-library/react-hooks'
import { useGetUserDataQuery } from '../../services';

test('should working properly', () => {
  const { result } = renderHook(() => useGetUserDataQuery())
  expect(result.current.result).toBe("Idk what");
})
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Vencovsky
  • Low reputation (1):
Posted by: Kospel