@@ -96,7 +96,7 @@ describe('hubextensions', () => {
96
96
// eslint-disable-next-line deprecation/deprecation
97
97
hub . bindClient ( client ) ;
98
98
99
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
99
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
100
100
101
101
// eslint-disable-next-line deprecation/deprecation
102
102
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' } ) ;
@@ -133,7 +133,7 @@ describe('hubextensions', () => {
133
133
} ;
134
134
} ) ;
135
135
136
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
136
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
137
137
138
138
// eslint-disable-next-line deprecation/deprecation
139
139
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' } ) ;
@@ -181,7 +181,7 @@ describe('hubextensions', () => {
181
181
} ;
182
182
} ) ;
183
183
184
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
184
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
185
185
186
186
// eslint-disable-next-line deprecation/deprecation
187
187
const transaction = Sentry . getCurrentHub ( ) . startTransaction ( { name : 'profile_hub' , traceId : 'boop' } ) ;
@@ -203,7 +203,7 @@ describe('hubextensions', () => {
203
203
const startProfilingSpy = jest . spyOn ( CpuProfilerBindings , 'startProfiling' ) ;
204
204
const stopProfilingSpy = jest . spyOn ( CpuProfilerBindings , 'stopProfiling' ) ;
205
205
206
- jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
206
+ jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
207
207
208
208
// eslint-disable-next-line deprecation/deprecation
209
209
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
@@ -223,7 +223,7 @@ describe('hubextensions', () => {
223
223
// eslint-disable-next-line deprecation/deprecation
224
224
hub . bindClient ( client ) ;
225
225
226
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
226
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
227
227
228
228
// eslint-disable-next-line deprecation/deprecation
229
229
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
@@ -274,7 +274,7 @@ describe('hubextensions', () => {
274
274
// Emit is sync, so we can just assert that we got here
275
275
const transportSpy = jest . spyOn ( transport , 'send' ) . mockImplementation ( ( ) => {
276
276
// Do nothing so we don't send events to Sentry
277
- return Promise . resolve ( ) ;
277
+ return Promise . resolve ( { } ) ;
278
278
} ) ;
279
279
280
280
// eslint-disable-next-line deprecation/deprecation
@@ -346,7 +346,7 @@ describe('hubextensions', () => {
346
346
347
347
const transportSpy = jest . spyOn ( transport , 'send' ) . mockImplementation ( ( ) => {
348
348
// Do nothing so we don't send events to Sentry
349
- return Promise . resolve ( ) ;
349
+ return Promise . resolve ( { } ) ;
350
350
} ) ;
351
351
352
352
// eslint-disable-next-line deprecation/deprecation
@@ -439,7 +439,7 @@ describe('hubextensions', () => {
439
439
// eslint-disable-next-line deprecation/deprecation
440
440
hub . bindClient ( client ) ;
441
441
442
- const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( ) ) ;
442
+ const transportSpy = jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
443
443
444
444
// eslint-disable-next-line deprecation/deprecation
445
445
const transaction = hub . startTransaction ( { name : 'profile_hub' } ) ;
0 commit comments