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
import type { VueWrapper } from '@vue/test-utils'
import { mountSuspended } from '@nuxt/test-utils/runtime'
import { describe, expect, it } from 'vitest'
import NavBar from './NavBar.vue'
describe('navBar', () => {
it('renders Home link correctly', async () => {
const wrapper = await mountSuspended(NavBar)
// test true to be true
expect(true).toBe(true)
})
Describe the bug
Im trying to to a simple component test and I think it's failing to mock NuxtLink with slots when it is destruturing the property isActive
Environment
Darwin
v20.16.0
3.14.1592
3.15.0
2.10.4
[email protected]
-
default
@vueuse/[email protected]
,@unocss/[email protected]
,@nuxt/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxt/test-utils/[email protected]
-
Reproduction
Link to the repo: Archetipo95/movies#2
FILES:
NavBar.vue File
NavBar.nuxt.test.ts File
Describe the bug
Im trying to to a simple component test and I think it's failing to mock NuxtLink with slots when it is destruturing the property isActive
Additional context
No response
Logs
https://github.com/Archetipo95/movies/actions/runs/12358331784/job/34488575188?pr=2
The text was updated successfully, but these errors were encountered: