File tree Expand file tree Collapse file tree 3 files changed +7
-127
lines changed
src/integrations/local-variables Expand file tree Collapse file tree 3 files changed +7
-127
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import type {
12
12
Variables ,
13
13
} from './common' ;
14
14
import { createRateLimiter , functionNamesMatch } from './common' ;
15
- import { localVariablesTestHelperMethods } from './test-helpers' ;
16
15
17
16
/** Creates a unique hash from stack frames */
18
17
export function hashFrames ( frames : StackFrame [ ] | undefined ) : string | undefined {
@@ -289,8 +288,6 @@ const _localVariablesSyncIntegration = ((
289
288
return event ;
290
289
}
291
290
292
- const testHelperMethods = localVariablesTestHelperMethods ( cachedFrames ) ;
293
-
294
291
let setupPromise : Promise < void > | undefined ;
295
292
296
293
async function setup ( ) : Promise < void > {
@@ -419,7 +416,13 @@ const _localVariablesSyncIntegration = ((
419
416
420
417
return event ;
421
418
} ,
422
- ...testHelperMethods ,
419
+ // These are entirely for testing
420
+ _getCachedFramesCount ( ) : number {
421
+ return cachedFrames . size ;
422
+ } ,
423
+ _getFirstCachedFrame ( ) : FrameVariables [ ] | undefined {
424
+ return cachedFrames . values ( ) [ 0 ] ;
425
+ } ,
423
426
} ;
424
427
} ) satisfies IntegrationFn ;
425
428
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments