@@ -806,23 +806,33 @@ describe('SentryEventWorker', () => {
806806 event_id : '4c40fee730194a989439a86bf75634111' ,
807807 sent_at : '2025-08-29T10:59:29.952Z' ,
808808 /* eslint-enable @typescript-eslint/naming-convention */
809- sdk : { name : 'sentry.javascript.react' , version : '9.10.1' } ,
809+ sdk : {
810+ name : 'sentry.javascript.react' ,
811+ version : '9.10.1' ,
812+ } ,
810813 } ) ,
811814 // Event item header
812815 JSON . stringify ( { type : 'event' } ) ,
813816 // Event item payload
814- JSON . stringify ( { message : 'Test event' , level : 'error' } ) ,
817+ JSON . stringify ( {
818+ message : 'Test event' ,
819+ level : 'error' ,
820+ } ) ,
815821 // Replay event item header - should be filtered out
816822 JSON . stringify ( { type : 'replay_event' } ) ,
817823 // Replay event item payload - should be filtered out
818824 JSON . stringify ( {
819825 /* eslint-disable @typescript-eslint/naming-convention */
820826 replay_id : 'test-replay' ,
827+ /* eslint-disable @typescript-eslint/naming-convention */
821828 segment_id : 1 ,
822829 /* eslint-enable @typescript-eslint/naming-convention */
823830 } ) ,
824831 // Replay recording item header - should be filtered out
825- JSON . stringify ( { type : 'replay_recording' , length : 343 } ) ,
832+ JSON . stringify ( {
833+ type : 'replay_recording' ,
834+ length : 343 ,
835+ } ) ,
826836 // Replay recording binary payload - should be filtered out
827837 'binary-data-here-that-is-not-json' ,
828838 ] ;
@@ -841,6 +851,7 @@ describe('SentryEventWorker', () => {
841851 expect ( mockedAmqpChannel . sendToQueue ) . toHaveBeenCalledTimes ( 1 ) ;
842852
843853 const addedTaskPayload = getAddTaskPayloadFromLastCall ( ) ;
854+
844855 expect ( addedTaskPayload ) . toMatchObject ( {
845856 payload : expect . objectContaining ( {
846857 addons : {
@@ -865,7 +876,10 @@ describe('SentryEventWorker', () => {
865876 event_id : '62680958b3ab4497886375e06533d86a' ,
866877 sent_at : '2025-12-24T13:16:34.580Z' ,
867878 /* eslint-enable @typescript-eslint/naming-convention */
868- sdk : { name : 'sentry.javascript.react' , version : '10.22.0' } ,
879+ sdk : {
880+ name : 'sentry.javascript.react' ,
881+ version : '10.22.0' ,
882+ } ,
869883 } ) ,
870884 // Replay event item header - should be filtered out
871885 JSON . stringify ( { type : 'replay_event' } ) ,
@@ -907,7 +921,10 @@ describe('SentryEventWorker', () => {
907921 /* eslint-enable @typescript-eslint/naming-convention */
908922 } ) ,
909923 // Replay recording item header - should be filtered out
910- JSON . stringify ( { type : 'replay_recording' , length : 16385 } ) ,
924+ JSON . stringify ( {
925+ type : 'replay_recording' ,
926+ length : 16385 ,
927+ } ) ,
911928 // Segment ID - should be filtered out
912929 JSON . stringify ( { segment_id : 1 } ) ,
913930 // Binary data (simulated) - should be filtered out
0 commit comments