babel-plugin-jsx/test/util.js
zdw 8f18b5630a feat: add directive test case
add spread test case
2020-05-14 22:13:44 +08:00

8 lines
226 B
JavaScript

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 };
};