Cannot mock external function in nextjs
i have a function called makeApiRequest, the sole purpose of the function is literally creating REST requests and it is using fetch, I’ve imported this component in many nextjs components like this:
i have a function called makeApiRequest, the sole purpose of the function is literally creating REST requests and it is using fetch, I’ve imported this component in many nextjs components like this: