Como testar o método emitido do componente filho vue js
const stub = sinon.stub()
const wrapper = mount(ParentComponent)
// just a simple assertion that your parent component's handler for input event was called
wrapper.setMethods({ methodToTest: sub })
// you can pass a component in `find()` method then trigger the component's event
wrapper.find(ChildComponent).trigger('input')
// assert if the listener was called
expect(stub.called).tobeTruthy()
Wide-eyed Wildebeest