How do I test with app extension components?
-
Hi,
how do I register the app extension components with @vue/test-utils?
I get this error:
[Vue warn]: Unknown custom element: <q-media-player> - did you register the component correctly?
This directive is used in a component template I’d like to test.
Thanks.
-
Hi @arlecchino
If you are using @quasar test, you probaly have an index.js withimport QMediaPlayer from 'QMediaPlayer' localVue.component(QMediaPlayer, { QMediaPlayer})
You can globally import QMediaPlayer there.
For performance things, its better import locally on every test, but globally shold work too.