Getting errors when executing test cases in Redux Tool Kit query,
- Used React Native Testing Library for rendering components.
An unhandled error occurred processing a request for the endpoint "getProducts".
In the case of an unhandled error, no tags will be "provided" or "invalidated". TypeError: config.headers.has is not a function
jestSetup.ts:
jest.useFakeTimers()
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
jest.mock('node-fetch');
require('jest-fetch-mock').enableMocks()
Tried with mocking node-fetch