Skip to content

Commit 76893c5

Browse files
committed
refactor(local-variables): Remove test helper methods and related tests
1 parent 367ef5c commit 76893c5

File tree

3 files changed

+7
-127
lines changed

3 files changed

+7
-127
lines changed

packages/node-core/src/integrations/local-variables/local-variables-sync.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
Variables,
1313
} from './common';
1414
import { createRateLimiter, functionNamesMatch } from './common';
15-
import { localVariablesTestHelperMethods } from './test-helpers';
1615

1716
/** Creates a unique hash from stack frames */
1817
export function hashFrames(frames: StackFrame[] | undefined): string | undefined {
@@ -289,8 +288,6 @@ const _localVariablesSyncIntegration = ((
289288
return event;
290289
}
291290

292-
const testHelperMethods = localVariablesTestHelperMethods(cachedFrames);
293-
294291
let setupPromise: Promise<void> | undefined;
295292

296293
async function setup(): Promise<void> {
@@ -419,7 +416,13 @@ const _localVariablesSyncIntegration = ((
419416

420417
return event;
421418
},
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+
},
423426
};
424427
}) satisfies IntegrationFn;
425428

packages/node-core/src/integrations/local-variables/test-helpers.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/node-core/test/integrations/local-variables.test.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)