(html: string, render: () => any)
| 41 | const { createRecord, reload } = __VUE_HMR_RUNTIME__ |
| 42 | |
| 43 | function mountWithHydration(html: string, render: () => any) { |
| 44 | const container = document.createElement('div') |
| 45 | container.innerHTML = html |
| 46 | const app = createSSRApp({ |
| 47 | render, |
| 48 | }) |
| 49 | return { |
| 50 | vnode: app.mount(container).$.subTree as VNode<Node, Element> & { |
| 51 | el: Element |
| 52 | }, |
| 53 | container, |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | const triggerEvent = (type: string, el: Element) => { |
| 58 | const event = new Event(type) |
no test coverage detected