Chore: Remove betterPageScrolling toggle (#89339)

* remove betterPageScrolling toggle

* add scrollTo test shim
This commit is contained in:
Ashley Harrison
2024-06-18 14:33:08 +01:00
committed by GitHub
parent 3badf73b45
commit 50dd95c09b
12 changed files with 11 additions and 116 deletions

View File

@@ -67,6 +67,8 @@ global.IntersectionObserver = mockIntersectionObserver;
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
// add scrollTo interface since it's not implemented in jsdom
Element.prototype.scrollTo = () => {};
jest.mock('../app/core/core', () => ({
...jest.requireActual('../app/core/core'),