1
1
import { Span , Transaction } from '../../src' ;
2
- import { _startChild , addResourceSpans , MetricsInstrumentation , ResourceEntry } from '../../src/browser/metrics' ;
2
+ import {
3
+ _startChild ,
4
+ addResourceSpans ,
5
+ DEFAULT_METRICS_INSTR_OPTIONS ,
6
+ MetricsInstrumentation ,
7
+ ResourceEntry ,
8
+ } from '../../src/browser/metrics' ;
3
9
import { addDOMPropertiesToGlobal } from '../testutils' ;
4
10
5
11
// eslint-disable-next-line @typescript-eslint/no-explicit-any, no-var
@@ -178,7 +184,7 @@ describe('MetricsInstrumentation', () => {
178
184
jest . spyOn ( MetricsInstrumentation . prototype as any , tracker ) ,
179
185
) ;
180
186
181
- new MetricsInstrumentation ( ) ;
187
+ new MetricsInstrumentation ( DEFAULT_METRICS_INSTR_OPTIONS ) ;
182
188
183
189
trackers . forEach ( tracker => expect ( tracker ) . not . toBeCalled ( ) ) ;
184
190
} ) ;
@@ -191,7 +197,7 @@ describe('MetricsInstrumentation', () => {
191
197
const trackers = [ '_trackCLS' , '_trackLCP' , '_trackFID' ] . map ( tracker =>
192
198
jest . spyOn ( MetricsInstrumentation . prototype as any , tracker ) ,
193
199
) ;
194
- new MetricsInstrumentation ( ) ;
200
+ new MetricsInstrumentation ( DEFAULT_METRICS_INSTR_OPTIONS ) ;
195
201
global . process = backup ;
196
202
197
203
trackers . forEach ( tracker => expect ( tracker ) . toBeCalled ( ) ) ;
0 commit comments