@@ -53,6 +53,7 @@ describe('Sentry client SDK', () => {
53
53
[ 'tracesSampleRate' , { tracesSampleRate : 0 } ] ,
54
54
[ 'tracesSampler' , { tracesSampler : ( ) => 1.0 } ] ,
55
55
[ 'enableTracing' , { enableTracing : true } ] ,
56
+ [ 'no tracing option set' , { } ] ,
56
57
] ) ( 'adds browserTracingIntegration if tracing is enabled via %s' , ( _ , tracingOptions ) => {
57
58
init ( {
58
59
dsn : 'https://public@dsn.ingest.sentry.io/1337' ,
@@ -66,22 +67,6 @@ describe('Sentry client SDK', () => {
66
67
expect ( browserTracing ) . toBeDefined ( ) ;
67
68
} ) ;
68
69
69
- it . each ( [
70
- [ 'enableTracing' , { enableTracing : false } ] ,
71
- [ 'no tracing option set' , { } ] ,
72
- ] ) ( "doesn't add browserTracingIntegration if tracing is disabled via %s" , ( _ , tracingOptions ) => {
73
- init ( {
74
- dsn : 'https://public@dsn.ingest.sentry.io/1337' ,
75
- ...tracingOptions ,
76
- } ) ;
77
-
78
- const integrationsToInit = browserInit . mock . calls [ 0 ] ! [ 0 ] ?. defaultIntegrations || [ ] ;
79
- const browserTracing = getClient < BrowserClient > ( ) ?. getIntegrationByName ( 'BrowserTracing' ) ;
80
-
81
- expect ( integrationsToInit ) . not . toContainEqual ( expect . objectContaining ( { name : 'BrowserTracing' } ) ) ;
82
- expect ( browserTracing ) . toBeUndefined ( ) ;
83
- } ) ;
84
-
85
70
it ( "doesn't add browserTracingIntegration if `__SENTRY_TRACING__` is set to false" , ( ) => {
86
71
( globalThis as any ) . __SENTRY_TRACING__ = false ;
87
72
0 commit comments