mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-02 16:22:14 -07:00
Mock next/router in signin tests
This commit is contained in:
@@ -11,6 +11,12 @@ vi.mock("utils/config/config", () => ({
|
||||
getSettings: getSettingsMock,
|
||||
}));
|
||||
|
||||
vi.mock("next/router", () => ({
|
||||
useRouter: () => ({
|
||||
query: {},
|
||||
}),
|
||||
}));
|
||||
|
||||
import { getProviders } from "next-auth/react";
|
||||
import SignInPage, { getServerSideProps } from "pages/auth/signin";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user