We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5941d3 commit 37535a0Copy full SHA for 37535a0
packages/hub/test/hub.test.ts
@@ -4,6 +4,7 @@
4
import { Client, Event } from '@sentry/types';
5
6
import { getCurrentHub, Hub, Scope } from '../src';
7
+import { EventType } from '@sentry/types/build/types/event';
8
9
const clientFn: any = jest.fn();
10
@@ -358,10 +359,11 @@ describe('Hub', () => {
358
359
expect(args[1].event_id).toEqual(hub.lastEventId());
360
});
361
- test('transactions do not set lastEventId', () => {
362
+ const eventTypesToIgnoreLastEventId: EventType[] = ['transaction', 'replay_event'];
363
+ it.each(eventTypesToIgnoreLastEventId)('eventType %s does not set lastEventId', eventType => {
364
const event: Event = {
365
extra: { b: 3 },
- type: 'transaction',
366
+ type: eventType,
367
};
368
const testClient = makeClient();
369
const hub = new Hub(testClient);
0 commit comments