You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I'm attempting to mock the login global useUserSession on my test. But it fails with an useUserSession is not defined error. My code looks like this:
Hello all!
I'm on
And I'm attempting to mock the login global
useUserSession
on my test. But it fails with anuseUserSession
is not defined error. My code looks like this:And my test code looks like this
I also tried using
vi.mock
with no successHow can I mock the globals introduced by this module on my tests?
I'm currently following the official guides -> https://nuxt.com/docs/guide/recipes/sessions-and-authentication
I'm happy to contribute some testing auth examples to the docs if we solve this one 🎊
The text was updated successfully, but these errors were encountered: