import { h, Fragment, render, mount } from '@/index'; const Root = mount(() => () => ( )); const testWrap = document.getElementById('root') || document.createElement('div'); render(, testWrap); if (import.meta.vitest) { const { it, expect } = import.meta.vitest; it('Lithent draws the svg correctly.', () => { setTimeout(() => { expect(testWrap.outerHTML).toBe( '
' ); }, 100); }); }