Disabling Nuxt Auth in Testing Environment #27182
pablo-vega-kloeckner-i
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been tackling an issue lately with Nuxt Auth in our testing environment. Specifically, I'm looking for a way to disable Nuxt Auth only when running tests. In our vite.config.js, we've set the environment to 'nuxt', and it seems that Nuxt Auth still kicks in during testing, which is causing some unexpected behavior.
vitest.config.ts
error caught during app initialization FetchError: [GET] "null/api/auth/session?callbackUrl=nullblank":
Has anyone encountered a similar situation or found a workaround for this? Any insights would be greatly appreciated! Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions