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
After some recent dependancy upgrades around Nuxt I'm getting the [nuxt] instance unavailable error on tests that call functions in server/utils that use useRuntimeConfig.
See the reproduction link for an example. Thanks.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
The runtime environment for nuxt test utils is for testing client-side/browser code, rather than server code. (See #531.) So I wouldn't expect it to work.
Does code using useRuntimeConfig work fine when outside the server/ folder?
Environment
Reproduction
https://stackblitz.com/edit/github-gu1sj1-si6cpn?file=server%2Futils%2Fexample-util.nuxt.spec.ts&startScript=start
Run ->
npm run test
Describe the bug
After some recent dependancy upgrades around Nuxt I'm getting the
[nuxt] instance unavailable
error on tests that call functions inserver/utils
that useuseRuntimeConfig
.See the reproduction link for an example. Thanks.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: