You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a library called Vuetify. Now my app contains (almost) only vuetify elements like v-btn/v-toolbar/...
The problem is that I can't test anything because Avoriaz requires custom elements to have a name property and none of those custom elements have a name property...
I'm sorry if I'm totally wrong, I'm pretty new to testing javascript. Any help is appreaciated. :)
The text was updated successfully, but these errors were encountered:
I realize now this is a pretty old issue, but there is a workaround in case anyone else runs into it. Assuming that the Vuetify components are registered globally, you can set a name property on any relevant components via a new vue instance for your tests.
I haven't actually used the approach of setting name only in quite some time though (I now stub the entire component so I can just test if props are set correctly), so it's possible I have that property wrong (vueInstance.options.components.someVuetifyComponent.name). If so, you might need to inspect the object, it should be in the vicinity.
I'm using a library called
Vuetify
. Now my app contains (almost) only vuetify elements like v-btn/v-toolbar/...The problem is that I can't test anything because Avoriaz requires custom elements to have a name property and none of those custom elements have a name property...
I'm sorry if I'm totally wrong, I'm pretty new to testing javascript. Any help is appreaciated. :)
The text was updated successfully, but these errors were encountered: