Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react
SDK Version
7.16.0
Framework Version
React 18.2.0
Link to Sentry event
No response
Steps to Reproduce
- Write a Jest test with the following contents:
import { init } from '@sentry/react';
jest.mock('@sentry/react');
Expected Result
No error
Actual Result
Test fails with Failed to get mock metadata: node_modules/@sentry/react/cjs/index.js