Open
Description
Version
1.0.0-beta.32
Reproduction link
https://codesandbox.io/s/clever-bush-v4p5i
Steps to reproduce
- Create a child component which should emit an event
- Create a wrapper component which will render directly only the child component
- Set a listener for this created event on the wrapper
Then go to the tests
- Use shallowMount to create the wrapper
- Stub the event handler function using wrapper.setMethods
- Find and emit the event
wrapper.find('Child-stub').vm.$emit('your-event')
- Assert if event handler function have been called
What is expected?
It's expected the handler function be called
What is actually happening?
It looks when we create a Wrapper component which renders directly a Child component, and then, when the child component emits an event, the wrapper won't call the handle function
On the reproduction link, there are two Wrappers
- Wrapper doesn't work
- Wrapper2 works, because I moved my ChildComponent to an
<div>
Maybe this can be related with #650 (comment)