D
D
Dmitry Arushanov2020-02-11 12:47:37
Unit testing
Dmitry Arushanov, 2020-02-11 12:47:37

How to fix warning in Vue + Vuetify unit tests?

Good day to all. There is a project on VUE with Vuetify plugin.
There is a component, not very complex but using the vuetify expansion-panel.
And when trying to test it, and when executing `mount()`, several messages like this are displayed in the console.
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

How can this problem be solved? And how critical is it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-11
@daruwanov

You most likely didn't include Vuetify in your test. As a consequence, its components were not registered.
See the plugin registration in the test using the VueRouter example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question