({ children }: { children: ReactNode })
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected