test(smoothScroll): cast mock to the proper type

This commit is contained in:
Ilia Mashkov
2026-02-18 20:40:00 +03:00
parent e81cadb32a
commit 51ea8a9902

View File

@@ -18,7 +18,7 @@ describe('smoothScroll', () => {
beforeEach(() => {
// Mock scrollIntoView
mockScrollIntoView = vi.fn();
HTMLElement.prototype.scrollIntoView = mockScrollIntoView;
HTMLElement.prototype.scrollIntoView = mockScrollIntoView as (arg?: boolean | ScrollIntoViewOptions) => void;
// Mock history.pushState
mockPushState = vi.fn();