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
When the NuxtLayout component is removed, it works. Also when the component WITH the NuxtLayout is copied to prenode.vue page component, such that the fallback is not used, then it works also! It seems the mocking of routes of nuxt test utils somehow fails when the fallback component is in use.
The text was updated successfully, but these errors were encountered:
It also works when a page component like testing/[...].vue is used. But it fails with the regular [...].vue. As a work-a-round I've added testing/[...].vue in the playground so we can use this for unit tests until this is fixed.
fago
changed the title
Unit test for fallback components fail when layout is used
Unit test for page components fail when layout is used
Jan 18, 2025
A unit test like this fails
when the default [...[.vue is used with some layout like
When the NuxtLayout component is removed, it works. Also when the component WITH the NuxtLayout is copied to prenode.vue page component, such that the fallback is not used, then it works also! It seems the mocking of routes of nuxt test utils somehow fails when the fallback component is in use.
The text was updated successfully, but these errors were encountered: