Skip to content

Commit bc84efe

Browse files
authored
ref(tests): remove XMLHttpRequest in mock API (#102986)
this isn't needed as all tests pass without it, but it breaks the msw poc because the service worker intercepts that "request" too
1 parent dd72927 commit bc84efe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

static/app/__mocks__/api.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ class Client implements ApiNamespace.Client {
275275
abort: () => {},
276276
then: () => {},
277277
error: () => {},
278-
},
279-
new XMLHttpRequest()
278+
}
280279
);
281280

282281
this.handleRequestError(

0 commit comments

Comments
 (0)