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
Fetches can be mocked to act as if they were aborted during the request. This can be done in 4 ways:
353
353
354
354
<ol>
355
-
<li>Using `fetch.mockAborted()`</li>
356
-
<li>Using `fetch.mockAbortedOnce()`</li>
355
+
<li>Using `fetch.mockAbort()`</li>
356
+
<li>Using `fetch.mockAbortOnce()`</li>
357
357
<li>Passing a request (or request init) with a 'signal' to fetch that has been aborted</li>
358
358
<li>Passing a request (or request init) with a 'signal' to fetch and a async function to `fetch.mockResponse` or `fetch.mockResponseOnce` that causes the signal to abort before returning the response</li>
0 commit comments