We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.0-beta.25
https://codesandbox.io/s/r7rn4q2qo
Test passed
[Vue warn]: Invalid handler for event "click": got undefined.
How do I can pass them on?
The text was updated successfully, but these errors were encountered:
It works.
import { shallowMount } from "@vue/test-utils"; import BaseButton from "../BaseButton.vue"; describe("BaseButtonIcon", () => { it("calls item-click when button is clicked", () => { const stub = jest.fn(); const wrapper = shallowMount(BaseButton, { context: { props: { text: "click" }, on: { 'item-click': stub, }, }, }); const button = wrapper.find("button.base-button-inc"); button.trigger("click"); expect(stub).toHaveBeenCalled(); }); });
Sorry, something went wrong.
No branches or pull requests
Version
1.0.0-beta.25
Reproduction link
https://codesandbox.io/s/r7rn4q2qo
Steps to reproduce
What is expected?
Test passed
What is actually happening?
[Vue warn]: Invalid handler for event "click": got undefined.
How do I can pass them on?
The text was updated successfully, but these errors were encountered: