Open rd-stefan-riehmer opened 3 years ago
This seems to be because MdPortal is trying to find "transition" inside the child node's propsData without checking if propsData is defined (it's allowed to be undefined by the VNodeOptions interface). I'll create a PR for this, but for now I was able to work around the issue by stubbing out MdPortal in my test like so:
const wrapper = mount(MyComponent, {
props:{...},
stubs: {
'MdPortal': { template: '<div><slot/></div>' }
}
})
When testing the closing behavior of a dialog, the jest-test with vue-cli for closing runs fine, but there's an ugly stacktrace output:
Steps to reproduce
What is expected?
No stacktrace thrown.