diff --git a/jest.setup.cjs b/jest.setup.cjs index 2f5c44d..239840b 100644 --- a/jest.setup.cjs +++ b/jest.setup.cjs @@ -2,6 +2,7 @@ require('@testing-library/jest-dom'); const { getComputedStyle } = window; window.getComputedStyle = (elt) => getComputedStyle(elt); +window.HTMLElement.prototype.scrollIntoView = () => {}; Object.defineProperty(window, 'matchMedia', { writable: true,