We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c83b80 commit 7a371a6Copy full SHA for 7a371a6
packages/tracing-internal/test/browser/metrics/index.test.ts
@@ -262,15 +262,13 @@ describe('_addResourceSpans', () => {
262
});
263
264
const setGlobalLocation = (location: Location) => {
265
- // @ts-expect-error need to override global document
+ // @ts-expect-error need to delete this in order to set to new value
266
delete WINDOW.location;
267
WINDOW.location = mockWindowLocation;
268
-
269
- console.log('\n\n WINDOW origin!! \n\n');
270
- console.log(WINDOW.location.origin);
271
- console.log('\n\n');
272
-}
+};
273
274
const resetGlobalLocation = () => {
+ // @ts-expect-error
+ delete WINDOW.location;
275
WINDOW.location = originalLocation;
276
0 commit comments