@@ -46,6 +46,7 @@ describe('Sentry client SDK', () => {
4646 [ 'tracesSampleRate' , { tracesSampleRate : 0 } ] ,
4747 [ 'tracesSampler' , { tracesSampler : ( ) => 1.0 } ] ,
4848 [ 'enableTracing' , { enableTracing : true } ] ,
49+ [ 'no tracing option set' , { } ] ,
4950 ] ) ( 'adds a browserTracingIntegration if tracing is enabled via %s' , ( _ , tracingOptions ) => {
5051 init ( {
5152 dsn :
'https://[email protected] /1337' , @@ -56,19 +57,6 @@ describe('Sentry client SDK', () => {
5657 expect ( browserTracing ) . toBeDefined ( ) ;
5758 } ) ;
5859
59- it . each ( [
60- [ 'enableTracing' , { enableTracing : false } ] ,
61- [ 'no tracing option set' , { } ] ,
62- ] ) ( "doesn't add a browserTracingIntegration integration if tracing is disabled via %s" , ( _ , tracingOptions ) => {
63- init ( {
64- dsn :
'https://[email protected] /1337' , 65- ...tracingOptions ,
66- } ) ;
67-
68- const browserTracing = getClient < BrowserClient > ( ) ?. getIntegrationByName ( 'BrowserTracing' ) ;
69- expect ( browserTracing ) . toBeUndefined ( ) ;
70- } ) ;
71-
7260 it ( "doesn't add a browserTracingIntegration if `__SENTRY_TRACING__` is set to false" , ( ) => {
7361 // This is the closest we can get to unit-testing the `__SENTRY_TRACING__` tree-shaking guard
7462 // IRL, the code to add the integration would most likely be removed by the bundler.
0 commit comments