()
| 44 | |
| 45 | test("it won't allow to fetch the session in isolation without a session context", () => { |
| 46 | function App() { |
| 47 | useSession() |
| 48 | return null |
| 49 | } |
| 50 | |
| 51 | expect(() => render(<App />)).toThrow( |
| 52 | "[next-auth]: `useSession` must be wrapped in a <SessionProvider />" |
nothing calls this directly
no test coverage detected