-
## Describe the bug
When loading our app, we get the following error:
```
[MSW] Failed to register Service Worker (/mockServiceWorker.js).
message: [Exception: TypeError: Illegal invocation at DOM…
-
## Issue Title
XHR Response interceptors get executed after the application receives the response.
## Description
I expect to see the response interceptor functions execute before the applica…
-
In light of the upcoming 2.0 release of MSW, this library should be ready to be used with that version. I have no plans on releasing this library prior to 2.0 release of MSW.
I don't expect much c…
-
Node.js behaviour:
```js
const http = require('http');
const req = http.get('http://nowhere.com/', res => {
console.log('response event');
})
req.on('finish', () => console.log('finish'))
r…
-
Hi, I noticed that #292 mentioned that interceptor has added support for the upload event of XMLHttpRequest, but I tried to use XHR to upload files in the latest version of msw, and the progress event…
-
It seems all errors thrown in an interceptor are swallowed and turned into a request responses.
What if I actually just want to cancel the request altogether and throw an error? Is that even possib…
-
don't know how to test here exactly, https://jestjs.io/? https://github.com/testing-library/react-testing-library?
https://github.com/mswjs/msw for API?
-
### Describe the bug
https://vitest.dev/guide/mocking.html#requests
Documentation of mocking requests references an example of using recommended MSW which looks like it was removed a number of wee…
-
Currently, we use msw both from `window.msw` ([example](https://github.com/gravitational/teleport/blob/eead5b25c58c878bc3a3c412def84fe31abc7ca1/web/packages/teleport/src/Discover/Server/DownloadScript…
-
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+) and [discussions](https://github.com/aws…