|
@@ -123,6 +123,13 @@ jest.mock('@sentry/react', function sentryReact() {
|
|
|
Scope: SentryReact.Scope,
|
|
|
Severity: SentryReact.Severity,
|
|
|
withProfiler: SentryReact.withProfiler,
|
|
|
+ metrics: {
|
|
|
+ MetricsAggregator: jest.fn().mockReturnValue({}),
|
|
|
+ increment: jest.fn(),
|
|
|
+ gauge: jest.fn(),
|
|
|
+ set: jest.fn(),
|
|
|
+ distribution: jest.fn(),
|
|
|
+ },
|
|
|
BrowserTracing: jest.fn().mockReturnValue({}),
|
|
|
BrowserProfilingIntegration: jest.fn().mockReturnValue({}),
|
|
|
addGlobalEventProcessor: jest.fn(),
|