-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
While running a test:
import { shallowMount } from /'@vue/test-utils/';
import EmojiPicker from /'../EmojiPicker.vue/';
describe(/'EmojiPicker.vue/', () => {
it(/'renders a vue instance/', () => {
expect(
shallowMount(EmojiPicker, {
})
).toBeTruthy();
});
});
there's an error:
[Vue warn]: Error in render: \"TypeError: Cannot read properties of undefined (reading \'click\')\" found in ---> <VueEmojiPicker> <Anonymous> <Root>
it is caused by this line:
slot-scope="{ events: { click: clickEvent } }"
any suggestions how to mock up this?
Metadata
Metadata
Assignees
Labels
No labels