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 2
2
/* eslint-disable deprecation/deprecation */
3
3
4
4
import { Client , Event } from '@sentry/types' ;
5
+ import { EventType } from '@sentry/types/build/types/event' ;
5
6
6
7
import { getCurrentHub , Hub , Scope } from '../src' ;
7
8
@@ -358,10 +359,11 @@ describe('Hub', () => {
358
359
expect ( args [ 1 ] . event_id ) . toEqual ( hub . lastEventId ( ) ) ;
359
360
} ) ;
360
361
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 => {
362
364
const event : Event = {
363
365
extra : { b : 3 } ,
364
- type : 'transaction' ,
366
+ type : eventType ,
365
367
} ;
366
368
const testClient = makeClient ( ) ;
367
369
const hub = new Hub ( testClient ) ;
You can’t perform that action at this time.
0 commit comments