Questions tagged as 'vue-test-utils'

1
answer

How to capture an event in a stub? [vue-test-utils]

I'm trying to test an event similar to this: // template: <form @submit.prevent="save"></form> const save = jest.fn() const wrapper = mount(MyComponent, {methods: { save }}) wrapper.find('form').trigger('submit.prevent') expect(sav...
asked by 23.11.2018 / 14:32