File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22/* eslint-disable deprecation/deprecation */
33
44import { Client , Event } from '@sentry/types' ;
5+ import { EventType } from '@sentry/types/build/types/event' ;
56
67import { getCurrentHub , Hub , Scope } from '../src' ;
78
@@ -358,10 +359,11 @@ describe('Hub', () => {
358359 expect ( args [ 1 ] . event_id ) . toEqual ( hub . lastEventId ( ) ) ;
359360 } ) ;
360361
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 => {
362364 const event : Event = {
363365 extra : { b : 3 } ,
364- type : 'transaction' ,
366+ type : eventType ,
365367 } ;
366368 const testClient = makeClient ( ) ;
367369 const hub = new Hub ( testClient ) ;
You can’t perform that action at this time.
0 commit comments