MCPcopy
hub / github.com/nextauthjs/next-auth / App

Function App

src/client/__tests__/use-session-hook.test.js:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45test("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 />"

Callers

nothing calls this directly

Calls 1

useSessionFunction · 0.90

Tested by

no test coverage detected