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 32ac2dc commit 4e35eb8Copy full SHA for 4e35eb8
packages/hub/test/hub.test.ts
@@ -2,6 +2,7 @@
2
/* eslint-disable deprecation/deprecation */
3
4
import { Client, Event } from '@sentry/types';
5
+import { EventType } from '@sentry/types/build/types/event';
6
7
import { getCurrentHub, Hub, Scope } from '../src';
8
@@ -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