Closed zivl closed 3 years ago
as suggested by @dcramer in https://github.com/getsentry/sentry/pull/16116/files#diff-aa34cb9acf9a36938078d3c80d01a25a it might be a good pattern to mock sentry TOGETHER with the testkit
jest.mock('@sentry/browser', () => { ...Sentry, testkit, init: options => SentryBrowser.init({ ...options, transport: sentryTransport }) })
solved here https://github.com/wix/sentry-testkit/commit/80e602c2597464c80721993e73c251d65b03ad22
as suggested by @dcramer in https://github.com/getsentry/sentry/pull/16116/files#diff-aa34cb9acf9a36938078d3c80d01a25a it might be a good pattern to mock sentry TOGETHER with the testkit