@@ -46,6 +46,7 @@ describe('Sentry client SDK', () => {
46
46
[ 'tracesSampleRate' , { tracesSampleRate : 0 } ] ,
47
47
[ 'tracesSampler' , { tracesSampler : ( ) => 1.0 } ] ,
48
48
[ 'enableTracing' , { enableTracing : true } ] ,
49
+ [ 'no tracing option set' , { } ] ,
49
50
] ) ( 'adds a browserTracingIntegration if tracing is enabled via %s' , ( _ , tracingOptions ) => {
50
51
init ( {
51
52
dsn :
'https://[email protected] /1337' ,
@@ -56,19 +57,6 @@ describe('Sentry client SDK', () => {
56
57
expect ( browserTracing ) . toBeDefined ( ) ;
57
58
} ) ;
58
59
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
-
72
60
it ( "doesn't add a browserTracingIntegration if `__SENTRY_TRACING__` is set to false" , ( ) => {
73
61
// This is the closest we can get to unit-testing the `__SENTRY_TRACING__` tree-shaking guard
74
62
// IRL, the code to add the integration would most likely be removed by the bundler.
0 commit comments