diff --git a/src/hubextensions.test.ts b/src/hubextensions.test.ts index 152f5a7d..f2435fe5 100644 --- a/src/hubextensions.test.ts +++ b/src/hubextensions.test.ts @@ -7,9 +7,14 @@ import profiler from './../build/Release/cpu_profiler'; function makeTransactionMock(): Transaction { return { + metadata: {}, + tags: {}, finish() { return; }, + setTag(key: string, value: any) { + this.tags[key] = value; + }, setMetadata(metadata: Partial) { this.metadata = { ...metadata } as TransactionMetadata; } diff --git a/src/utils.test.ts b/src/utils.test.ts index 32ed25b4..3ebb6188 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -120,7 +120,6 @@ describe('createProfilingEventEnvelope', () => { undefined ); - // @ts-expect-error header type inference is broken expect(envelope[0].sdk).toBe(undefined); }); @@ -139,7 +138,6 @@ describe('createProfilingEventEnvelope', () => { 'tunnel' ); - // @ts-expect-error header type inference is broken expect(envelope[0].dsn).toBe('https://publicKey@sentry.io:9000/path/123'); });