Problem during testing (Invalid vnode type)
Opened this issue · 0 comments
alabastor95 commented
Hi!
Important: the problem is only present when testing!
I am using trying to test this component with vitest
. For this, I am mounting it with @vue/test-utils
, which throws error.
Example component: <QRCodeVue3 value="https://example.com"></QRCodeVue3>
Problem:
[Vue warn]: Invalid vnode type when creating vnode: undefined.
at <ErrorPopup ref="VTU_COMPONENT" >
at <VTUROOT>
The component is not created, when console-logging the html part of the wrapper I receive the following in place of it: <!---->
I can successfully mount and test other components.