Skip to content

Commit

Permalink
Bump vitest from 1.0.2 to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 9, 2024
1 parent 56b8feb commit 75ba5cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function makeAsyncCallbackWithoutValue<T extends unknown[]>() {
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 };
}
Expand Down
2 changes: 1 addition & 1 deletion test/Test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export default function Test() {
{...pageProps}
inputRef={
pageNumber === index + 1
? (ref) => {
? (ref: any) => {
ref?.scrollIntoView();
}
: null
Expand Down

0 comments on commit 75ba5cf

Please sign in to comment.