MCPcopy Create free account
hub / github.com/dailydotdev/apps / wrapper

Function wrapper

packages/shared/src/hooks/useUserInfoForm.spec.tsx:72–93  ·  view source on GitHub ↗
({ children }: { children: ReactNode })

Source from the content-addressed store, hash-verified

70 });
71 const updateUser = jest.fn().mockResolvedValue(undefined);
72 const wrapper = ({ children }: { children: ReactNode }) => (
73 <QueryClientProvider client={queryClient}>
74 <AuthContext.Provider
75 value={{
76 closeLogin: jest.fn(),
77 getRedirectUri: jest.fn(),
78 isAuthReady: true,
79 isAuthReadyOrCached: true,
80 isLoggedIn: true,
81 logout: jest.fn(),
82 shouldShowLogin: false,
83 showLogin: jest.fn(),
84 tokenRefreshed: true,
85 isTokenValid: true,
86 updateUser,
87 user,
88 }}
89 >
90 {children}
91 </AuthContext.Provider>
92 </QueryClientProvider>
93 );
94
95 return {
96 updateUser,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected