diff --git a/test-utils.ts b/test-utils.ts index 08b46f10e..9fcd53bd8 100644 --- a/test-utils.ts +++ b/test-utils.ts @@ -7,7 +7,7 @@ function makeAsyncCallbackWithoutValue() { promiseResolve = resolve; }); type Func = (...args: T) => void; - const func: Func = vi.fn((...args) => promiseResolve(args)); + const func: Func = vi.fn((...args: T) => promiseResolve(args)); return { func, promise }; } diff --git a/test/Test.tsx b/test/Test.tsx index c3cd7d566..f21cf9e3b 100644 --- a/test/Test.tsx +++ b/test/Test.tsx @@ -298,7 +298,7 @@ export default function Test() { {...pageProps} inputRef={ pageNumber === index + 1 - ? (ref) => { + ? (ref: any) => { ref?.scrollIntoView(); } : null