You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
Add a note it intercepts fetch by overriding global.fetch
Does not intercept XMLHttpRequest (yet)
To decide:
Should users install unmock or unmock-browser? The first option would be simpler for documentation etc., but calling unmock.on() in development could then have undesired consequences (if the code runs also in the Node.js development server, unmock starts to intercept also there)
Should users use unmock-browser or just unmock-fetch? The latter does not export a "stand-alone" unmock package like unmock-node, unmock-browser and unmock do, should it?
The text was updated successfully, but these errors were encountered:
To add:
fetch
by overridingglobal.fetch
To decide:
unmock
orunmock-browser
? The first option would be simpler for documentation etc., but callingunmock.on()
in development could then have undesired consequences (if the code runs also in the Node.js development server, unmock starts to intercept also there)unmock-browser
or justunmock-fetch
? The latter does not export a "stand-alone" unmock package likeunmock-node
,unmock-browser
andunmock
do, should it?The text was updated successfully, but these errors were encountered: