Integration with Testing Library
-
Hello everyone!
I wonder if there is a way to integrate this library (“Testing Library”) with quasar? It is particularly good, and has American consulting firms that are already replacing the enzyme for example, with this one. -
There is an app extension, which installs a testing system here: https://github.com/quasarframework/quasar-testing
This extension uses Cypress. And, from what I’ve read (this is all hypothetical) you can install the Cypress wrapper of DOM Testing Library. If that works, then the Vue Testing Library should also work.
Scott
-
@s-molinari i will try this, thanks for advice.
-
Can anybody confirm that this is the way to go ?
If so, it would be nice to put a how-to in here.
Andreas -
Yes, and the how-to is in the repo.
Scott
-
Hi all,
I’m still struggling with the test setup.
Issue:
“[Vue warn]: Unknown custom element: <q-breadcrumbs> - did you register the component correctly? For recursive components, make sure to provide the “name” option.”
I’m not able to set
" localVue.use(Quasar);"
which is the clue when using vue test-utils.
But the render function of the vue testing-library creates the “localVue” instance internally.
Any hints ?
Andreas