@@ -2,7 +2,7 @@ import type { BrowserClient } from '@sentry/browser';
2
2
import { getActiveSpan } from '@sentry/browser' ;
3
3
import { browserTracingIntegration } from '@sentry/browser' ;
4
4
import * as SentryBrowser from '@sentry/browser' ;
5
- import { BrowserTracing , SDK_VERSION , WINDOW , getClient } from '@sentry/browser' ;
5
+ import { SDK_VERSION , WINDOW , getClient } from '@sentry/browser' ;
6
6
import { vi } from 'vitest' ;
7
7
8
8
import { getIsolationScope } from '@sentry/core' ;
@@ -102,27 +102,6 @@ describe('Sentry client SDK', () => {
102
102
delete globalThis . __SENTRY_TRACING__ ;
103
103
} ) ;
104
104
105
- it ( 'Overrides the automatically default BrowserTracing instance with a a user-provided BrowserTracing instance' , ( ) => {
106
- init ( {
107
- dsn :
'https://[email protected] /1337' ,
108
- // eslint-disable-next-line deprecation/deprecation
109
- integrations : [ new BrowserTracing ( { finalTimeout : 10 , startTransactionOnLocationChange : false } ) ] ,
110
- enableTracing : true ,
111
- } ) ;
112
-
113
- const integrationsToInit = browserInit . mock . calls [ 0 ] [ 0 ] ?. defaultIntegrations ;
114
-
115
- // eslint-disable-next-line deprecation/deprecation
116
- const browserTracing = getClient < BrowserClient > ( ) ?. getIntegrationByName ( 'BrowserTracing' ) as BrowserTracing ;
117
- const options = browserTracing . options ;
118
-
119
- expect ( integrationsToInit ) . toContainEqual ( expect . objectContaining ( { name : 'BrowserTracing' } ) ) ;
120
- expect ( browserTracing ) . toBeDefined ( ) ;
121
-
122
- // This shows that the user-configured options are still here
123
- expect ( options . finalTimeout ) . toEqual ( 10 ) ;
124
- } ) ;
125
-
126
105
it ( 'Overrides the automatically default BrowserTracing instance with a a user-provided browserTracingIntegration instance' , ( ) => {
127
106
init ( {
128
107
dsn :
'https://[email protected] /1337' ,
0 commit comments