From 5973650a8fa514ae43a4f257c82ecb117e2cbbcd Mon Sep 17 00:00:00 2001 From: Timon Masberg Date: Thu, 1 Feb 2024 11:22:52 +0100 Subject: [PATCH] fix(api-observability): clear mocks in otel user test --- .../interceptors/sentry-otel-user-context.interceptor.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/api/observability/src/lib/interceptors/sentry-otel-user-context.interceptor.spec.ts b/libs/api/observability/src/lib/interceptors/sentry-otel-user-context.interceptor.spec.ts index 4b9ea871..73ec02a0 100644 --- a/libs/api/observability/src/lib/interceptors/sentry-otel-user-context.interceptor.spec.ts +++ b/libs/api/observability/src/lib/interceptors/sentry-otel-user-context.interceptor.spec.ts @@ -17,6 +17,10 @@ describe('SentryOTelUserContextInterceptor', () => { interceptor = new SentryOTelUserContextInterceptor(); }); + afterEach(() => { + jest.clearAllMocks(); + }); + it('should set user context and attributes for Sentry and OpenTelemetry', async () => { const user: AuthUser = { id: '123',