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
Just trying to understand your setup, can you explain what you mean with that? Since node-fetch is designed for Node.js server environments, why is it used with @sentry/browser?
Sorry, we're implicitly using node-fetch (I think) through the Jest jsdom environment. Jest is a testing tool that runs in NodeJS, but simulates a browser environment (through jsdom) so that you can test code meant for the browser.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
8.21.0
Framework Version
Node 22.2.0, Jest 29.7.0 (jsdom)
Link to Sentry event
No response
Reproduction Example/SDK Setup
A standard Jest setup with jsdom. Sentry init:
Steps to Reproduce
In 03257e0#diff-ebaa2ab57cde4323877d589a960abf7decc00a617a9eda536fdb2882bc7073eeR122 Sentry starts calling
res.body.getReader()
. This is generally available in browserfetch
, but not innode-fetch
. We usenode-fetch
to test our code from Jest.Expected Result
Fetch would work, as it did with
@sentry/browser
8.20.0.Actual Result
The text was updated successfully, but these errors were encountered: