Skip to content

Commit a309595

Browse files
author
Pablo F.G
committed
test: fix
1 parent 684d496 commit a309595

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

ui/__mocks__/next-auth-jwt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type JWT = Record<string, unknown>;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Credentials() {
2+
return { id: "credentials", name: "Credentials" };
3+
}

ui/__mocks__/next-auth-react.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export function SessionProvider({ children }: { children: React.ReactNode }) {
2+
return children;
3+
}
4+
export function useSession() {
5+
return { data: null, status: "unauthenticated", update: async () => null };
6+
}
7+
export function signIn() {}
8+
export function signOut() {}

ui/__mocks__/next-auth.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export default function NextAuth() {
2+
return {
3+
signIn: async () => {},
4+
signOut: async () => {},
5+
auth: async () => null,
6+
handlers: { GET: () => {}, POST: () => {} },
7+
};
8+
}
9+
10+
export type NextAuthConfig = Record<string, unknown>;
11+
export type DefaultSession = Record<string, unknown>;
12+
export type Session = Record<string, unknown>;
13+
export type User = Record<string, unknown>;

0 commit comments

Comments
 (0)