import type { VueWrapper } from '@vue/test-utils'; import { mount } from '@vue/test-utils'; import { afterEach, describe, expect, it } from 'vitest'; import { defineComponent, h } from 'vue'; import { NavigationMenuList, NavigationMenuRoot } from '../index'; const wrappers: Array> = []; afterEach(() => { while (wrappers.length) wrappers.pop()!.unmount(); document.body.innerHTML = ''; }); function track>(w: T): T { wrappers.push(w); return w; } function mountRoot(attrs: Record = {}) { const Harness = defineComponent({ setup() { return () => h(NavigationMenuRoot, attrs, { default: () => h(NavigationMenuList), }); }, }); return track(mount(Harness, { attachTo: document.body })); } describe('navigation-menu — root landmark a11y', () => { it('renders a