import { describe, it, expect } from 'vitest'; describe('Vitest infrastructure', () => { it('runs assertions', () => { expect(1 + 1).toBe(2); }); it('exposes the jsdom document', () => { const div = document.createElement('div'); div.id = 'sanity'; document.body.appendChild(div); expect(document.getElementById('sanity')).toBe(div); }); it('supports Shadow DOM API in jsdom', () => { const host = document.createElement('div'); document.body.appendChild(host); const shadow = host.attachShadow({ mode: 'open' }); expect(host.shadowRoot).toBe(shadow); }); });