})
test('NEED_PATCH (vnode hooks)', () => {
- const root = baseCompile(`<div @vnodeUpdated="foo" />`, {
+ const root = baseCompile(`<div @vue:updated="foo" />`, {
prefixIdentifiers: true,
cacheHandlers: true
}).ast
})
})
+ // TODO remove in 3.4
test('v-is', () => {
const { node, root } = parseWithBind(`<div v-is="'foo'" />`)
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
// should skip v-is runtime check
directives: undefined
})
+ expect('v-is="component-name" has been deprecated').toHaveBeenWarned()
})
// #3934
})
})
+ // TODO remove in 3.4
test('case conversion for vnode hooks', () => {
const { node } = parseWithVOn(`<div v-on:vnode-mounted="onMount"/>`)
expect((node.codegenNode as VNodeCall).props).toMatchObject({
}
]
})
+ expect('@vnode-* hooks in templates are deprecated').toHaveBeenWarned()
})
test('vue: prefixed events', () => {