MCPcopy
hub / github.com/vuejs/core / mount

Function mount

packages/runtime-core/__tests__/helpers/withMemo.spec.ts:10–15  ·  view source on GitHub ↗
(options: ComponentOptions)

Source from the content-addressed store, hash-verified

8
9describe('v-memo', () => {
10 function mount(options: ComponentOptions): [HTMLElement, any] {
11 const app = createApp(options)
12 const el = document.createElement('div')
13 const vm = app.mount(el)
14 return [el, vm]
15 }
16
17 test('on with external array', async () => {
18 const [el, vm] = mount({

Callers 1

withMemo.spec.tsFile · 0.70

Calls 2

createElementMethod · 0.80
mountMethod · 0.80

Tested by

no test coverage detected