Closed
Description
it('works with expose', async () => {
const Component = defineComponent({
setup (props, { expose }) {
const val = ref('')
expose({
val
})
return () => h('div')
}
})
const wrapper = mount(Component)
})
In VueWrapper.hasMultipleRoots
, this.vm
is the exposed object instead of the component instance.
Should be something like this but always returning i.proxy
: