babel-plugin-jsx/test/util.js

8 lines
226 B
JavaScript
Raw Normal View History

import { createApp } from 'vue';
export const createMountedApp = function (compoent) {
const dom = document.createElement('div');
const App = createApp(compoent).mount(dom);
return { App, dom, node: App.$.subTree };
};