-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchMock@12, ReferenceError: Response is not defined #864
Comments
This sounds like something related to your specific test runner's environment. Are you able to create a repo with a reduced test case that includes exactly how you're configuring webpack, react etc. Once I have that I can investigate |
It is a bit difficult to create a repo.
Error is gone, but then test succeeds only when I mock response like this:
Additional Information: And a snippet of polyfills used in webpack:
|
Sorry, I'll only look at it if you create a repo that demonstrates the failure. In my experience, discussing things without an example I can actually run just takes a lot longer, and often I am unable to recreate the issue and debug as it relies on something that has been left out of the description provided in the issue. |
Node: v20.17.0
NPM: 10.8.2
fetchMock: 12.0.2
webpack: 5.95.0
I am trying to upgrade tests in our project (React) with v12. Made all of the changes as per the new documentation.
But now I am starting to get the error:
ReferenceError: Response is not defined
for all of the tests. This is an example of how a test with new changes look like:I am not sure if my test still missing something that is needed for v12,
I am happy to provide additional information if needed.
Thanks in advance!
The text was updated successfully, but these errors were encountered: