Closed firasrg closed 1 year ago
Hi again ๐ I just figured that the issue I'm facing doesn't have any link to cross-fetch.
The problem was with the declaration of the URL object in code:
Before:
const url: URL = new URL('/items/getAll');
After:
const url: URL = new URL('/items/getAll', "https://api-hostname" );
Now it works after ading the base path following the official docs
Hello !
While I'm trying to create some tests ๐งช to my React Native app, so I use Jest in order to do that.
And inside my setupTest.js file I have the following:
This is the error I'm getting from redux-toolkit-query:
๐ The problem is with the URL object. This is how I use the it in my code :
I, absolutely, need to solve this issue as its blocking me to finish an important work.
Please help ๐.