We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f90b0 commit 72fabd1Copy full SHA for 72fabd1
src/mock-doc/window.ts
@@ -25,11 +25,11 @@ import { MockResizeObserver } from './resize-observer';
25
import { MockShadowRoot } from './shadow-root';
26
import { MockStorage } from './storage';
27
28
-const nativeClearInterval = clearInterval;
29
-const nativeClearTimeout = clearTimeout;
30
-const nativeSetInterval = setInterval;
31
-const nativeSetTimeout = setTimeout;
32
-const nativeURL = URL;
+const nativeClearInterval = globalThis.clearInterval;
+const nativeClearTimeout = globalThis.clearTimeout;
+const nativeSetInterval = globalThis.setInterval;
+const nativeSetTimeout = globalThis.setTimeout;
+const nativeURL = globalThis.URL;
33
const nativeWindow = globalThis.window;
34
35
export class MockWindow {
0 commit comments