remove expo-sentry (#5405)

This commit is contained in:
Hailey
2024-09-18 09:34:29 -07:00
committed by GitHub
parent f45f7148ee
commit 41d4b2c7ef
9 changed files with 23 additions and 263 deletions
+6 -8
View File
@@ -1,6 +1,6 @@
import {beforeAll, describe, expect, jest, test} from '@jest/globals'
import * as Sentry from '@sentry/react-native'
import {nanoid} from 'nanoid/non-secure'
import {jest, describe, expect, test, beforeAll} from '@jest/globals'
import {Native as Sentry} from 'sentry-expo'
import {Logger, LogLevel, sentryTransport} from '#/logger'
@@ -16,12 +16,10 @@ jest.mock('#/env', () => ({
LOG_DEBUG: '',
}))
jest.mock('sentry-expo', () => ({
Native: {
addBreadcrumb: jest.fn(),
captureException: jest.fn(),
captureMessage: jest.fn(),
},
jest.mock('@sentry/react-native', () => ({
addBreadcrumb: jest.fn(),
captureException: jest.fn(),
captureMessage: jest.fn(),
}))
beforeAll(() => {
+1 -1
View File
@@ -1 +1 @@
export {Native as Sentry} from 'sentry-expo'
export * as Sentry from '@sentry/react-native'
+1 -1
View File
@@ -1 +1 @@
export {Browser as Sentry} from 'sentry-expo'
export * as Sentry from '@sentry/react-native'