mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove betterPageScrolling toggle (#89339)
* remove betterPageScrolling toggle * add scrollTo test shim
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user