Skip to content

Commit 1f1ba83

Browse files
committed
Remove value before deleting __SENTRY__ key
1 parent fe09ce2 commit 1f1ba83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/test/lib/integration.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class MockIntegration implements Integration {
1818
function withAutoloadedIntegrations(integrations: Integration[], callback: () => void) {
1919
(global as any).__SENTRY__ = { integrations };
2020
callback();
21+
(global as any).__SENTRY__ = undefined;
2122
delete (global as any).__SENTRY__;
2223
}
2324

0 commit comments

Comments
 (0)