I'm make a setup to a repo on my github with vitest-fetch-mock, a file under the projet import the fetch from the cross-fetch module, but when i mock on test, this appers dont work, after sometime i found the error, is because the vitest-fetch-mock dont override the lib import.
Example:
This not work
This works
Other alternative that works
I presume this is a bug, i will make a PR to add the cross-fetch import mock, so this will not happen with anyone agaian
I'm make a setup to a repo on my github with vitest-fetch-mock, a file under the projet import the fetch from the cross-fetch module, but when i mock on test, this appers dont work, after sometime i found the error, is because the vitest-fetch-mock dont override the lib import.
Example: This not work
This works
Other alternative that works
I presume this is a bug, i will make a PR to add the cross-fetch import mock, so this will not happen with anyone agaian