-
Notifications
You must be signed in to change notification settings - Fork 988
Closed
Labels
Description
Environment
- Operating System:
Darwin - Node Version:
v20.11.1 - Nuxt Version:
3.17.7 - CLI Version:
3.26.4 - Nitro Version:
2.12.4 - Package Manager:
[email protected] - Builder:
- - User Config:
app,css,ui,icon,runtimeConfig,modules,sourcemap,vite,supabase,i18n,devtools,nitro,routeRules,vue,router,sentry,compatibilityDate - Runtime Modules:
@vueuse/[email protected],[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxt/[email protected],@nuxt/[email protected],@stefanobartoletti/[email protected],@nuxt/test-utils/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxt/[email protected],@sentry/nuxt/[email protected] - Build Modules:
-
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.17.7
Reproduction
Description
When testing components that utilize Nuxt UI's inputs (UInput, UInputNumber, UInputMenu) in a Vitest environment using @nuxt/test-utils's mountSuspended, a persistent warning "injection Symbol(nuxt-ui.locale-context) not found" is logged.
The warning suggests an issue with how Nuxt UI's locale context is provided or accessed within the minimal Nuxt app created by mountSuspended.
[Vue warn]: injection "Symbol(nuxt-ui.locale-context)" not found.
at <UInputNumber modelValue=100 onUpdate:modelValue=fn modelModifiers= { number: true } ... >
at <Primitive as=undefined class="text-sm" >
at <UFormField label="price" error=undefined >
at <VInputNumber modelValue=100 onUpdate:modelValue=fn name="price_per_vehicle" ... >
at <MountSuspendedComponent formValues= { price_per_vehicle: 100, km_per_month: 2000 } >
at <MountSuspendedHelper>
at <Anonymous ref="VTU_COMPONENT" >
at <VTUROOT>
Additional context
No response