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 40a5095 commit 7adbfdfCopy full SHA for 7adbfdf
test/config/jest.setup-tests.js
@@ -67,8 +67,8 @@ beforeAll(async () => {
67
global[obj].addEventListener = addEventListenerSpy;
68
});
69
70
- if (!window.HTMLElement.prototype.scrollIntoView) {
71
- Object.defineProperty(window.HTMLElement.prototype, 'scrollIntoView', {
+ if (!global.HTMLElement.prototype.scrollIntoView) {
+ Object.defineProperty(global.HTMLElement.prototype, 'scrollIntoView', {
72
configurable: true,
73
writable: true,
74
value: () => {},
0 commit comments