@@ -98,7 +98,7 @@ describe('hubextensions', () => {
98
98
// eslint-disable-next-line deprecation/deprecation
99
99
hub . bindClient ( client ) ;
100
100
101
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
101
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
102
102
103
103
// eslint-disable-next-line deprecation/deprecation
104
104
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' } ) ;
@@ -135,7 +135,7 @@ describe('hubextensions', () => {
135
135
} ;
136
136
} ) ;
137
137
138
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
138
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
139
139
140
140
// eslint-disable-next-line deprecation/deprecation
141
141
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' } ) ;
@@ -183,7 +183,7 @@ describe('hubextensions', () => {
183
183
} ;
184
184
} ) ;
185
185
186
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
186
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
187
187
188
188
// eslint-disable-next-line deprecation/deprecation
189
189
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' , traceId : 'boop' } ) ;
@@ -205,7 +205,7 @@ describe('hubextensions', () => {
205
205
const startProfilingSpy = jest . spyOn ( CpuProfilerBindings , 'startProfiling' ) ;
206
206
const stopProfilingSpy = jest . spyOn ( CpuProfilerBindings , 'stopProfiling' ) ;
207
207
208
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
208
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
209
209
210
210
// eslint-disable-next-line deprecation/deprecation
211
211
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
@@ -225,7 +225,7 @@ describe('hubextensions', () => {
225
225
// eslint-disable-next-line deprecation/deprecation
226
226
hub . bindClient ( client ) ;
227
227
228
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
228
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
229
229
230
230
// eslint-disable-next-line deprecation/deprecation
231
231
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
@@ -276,7 +276,7 @@ describe('hubextensions', () => {
276
276
// Emit is sync, so we can just assert that we got here
277
277
const transportSpy = jest . spyOn ( transport , 'send' ) . mockImplementation ( ( ) => {
278
278
// Do nothing so we don't send events to Sentry
279
- return Promise . resolve ( ) ;
279
+ return Promise . resolve ( { } ) ;
280
280
} ) ;
281
281
282
282
// eslint-disable-next-line deprecation/deprecation
@@ -348,7 +348,7 @@ describe('hubextensions', () => {
348
348
349
349
const transportSpy = jest . spyOn ( transport , 'send' ) . mockImplementation ( ( ) => {
350
350
// Do nothing so we don't send events to Sentry
351
- return Promise . resolve ( ) ;
351
+ return Promise . resolve ( { } ) ;
352
352
} ) ;
353
353
354
354
// eslint-disable-next-line deprecation/deprecation
@@ -441,7 +441,7 @@ describe('hubextensions', () => {
441
441
// eslint-disable-next-line deprecation/deprecation
442
442
hub . bindClient ( client ) ;
443
443
444
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
444
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
445
445
446
446
// eslint-disable-next-line deprecation/deprecation
447
447
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
0 commit comments