-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vitest
run in a nuxt-vuefire
project results in warnings about INTERNAL ASSERTION FAILED (@firebase/auth)
#1559
Comments
@chrisspiegl Did you managed to overcome this? |
@halws have you seen the same? I postponed testing for a while because of different focus in our project. |
@chrisspiegl yes I do see it. What I've noticed after experiments
vuefire: {
emulators: false,
auth: {
enabled: true,
sessionCookie: true,
errorMap: 'debug',
// disable the poupup redirect resolver dependency
popupRedirectResolver: false,
// persistence: ['indexedDBLocal'],
},
config: {
},
}, It's a hacky solution, because you're disabling the feature
|
I'm running into this as well and use a environment override in my $test: {
vuefire: {
auth: {
popupRedirectResolver: false,
},
},
} |
Reproduction
https://github.com/chrisspiegl/reproduction-nuxt-vuefire-vitest-auth-internal-assertion
Steps to reproduce the bug
pnpm install
pnpm dev
pnpm test
@firebase/auth: Auth (10.12.4): INTERNAL ASSERTION FAILED: Expected a class definition
$fetch('/')
I tested this with the emulator & with a real firebase project. In both cases the regular build works, but the test run has the issues.
When I run it in my bigger project, the failed assertion leads to bigger issues / unable to finish the testing.
Expected behavior
When running the vitest nuxt environment, I expect the output not to show warnings / errors which do not show up in the dev/prod build.
I also tried running the tests in the
packages/nuxt
folder but:skip
skip
they did not work based on somemodule does not export…
or something error.Actual behavior
Console when running tests shows the
@firebase/auth: Auth (10.12.4): INTERNAL ASSERTION FAILED: Expected a class definition
stack trace.Running the same
pnpm test
withauth: { enabled: false }
in thenuxt.config.ts
does not show the warning/error.Additional information
Stack Trace from Console Output
The text was updated successfully, but these errors were encountered: