From 51ea8a990248ec8d23627b771d8e31ef7af32ab8 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 18 Feb 2026 20:40:00 +0300 Subject: [PATCH] test(smoothScroll): cast mock to the proper type --- src/shared/lib/utils/smoothScroll/smoothScroll.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/lib/utils/smoothScroll/smoothScroll.test.ts b/src/shared/lib/utils/smoothScroll/smoothScroll.test.ts index 0f825b7..39d6044 100644 --- a/src/shared/lib/utils/smoothScroll/smoothScroll.test.ts +++ b/src/shared/lib/utils/smoothScroll/smoothScroll.test.ts @@ -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();