File tree 1 file changed +3
-3
lines changed
packages/browser/test/unit/profiling
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ describe('BrowserProfilingIntegration', () => {
67
67
// @ts -expect-error force api to be undefined
68
68
global . window . Profiler = undefined ;
69
69
// set sampled to true so that profiling does not early return
70
- const mockTransaction = { sampled : true } as Transaction ;
70
+ const mockTransaction = { isRecording : ( ) => true } as Transaction ;
71
71
expect ( ( ) => onProfilingStartRouteTransaction ( mockTransaction ) ) . not . toThrow ( ) ;
72
72
} ) ;
73
73
it ( 'does not throw if constructor throws' , ( ) => {
@@ -80,8 +80,8 @@ describe('BrowserProfilingIntegration', () => {
80
80
}
81
81
}
82
82
83
- // set sampled to true so that profiling does not early return
84
- const mockTransaction = { sampled : true } as Transaction ;
83
+ // set isRecording to true so that profiling does not early return
84
+ const mockTransaction = { isRecording : ( ) => true } as Transaction ;
85
85
86
86
// @ts -expect-error override with our own constructor
87
87
global . window . Profiler = Profiler ;
You can’t perform that action at this time.
0 commit comments