Replies: 1 comment
-
In our internal tests, we simply mock the request to next-auth/src/client/__tests__/helpers/mocks.js Lines 5 to 13 in 0475964 (Don't think You could also use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question 💬
I'm trying to test my Next.js API but all the endpoints are protected by Next-Auth's getSession functionality. How is it possible to mock a session before every request during testing?
Beta Was this translation helpful? Give feedback.
All reactions