import { h, render, mount } from '@/index'; const Component = mount(() => { let injectHtml = ''; return () =>
; }); const testWrap = document.getElementById('root') || document.createElement('div'); render(, testWrap); if (import.meta.vitest) { const { it, expect } = import.meta.vitest; it('The innerHTML property, which forces the string into the DOM, should work fine.', () => { expect(testWrap.outerHTML).toBe( '
' ); }); }