Closed dwaxweiler closed 10 months ago
We didn't test the AE to suppot testing library and we don't have the bandwidth to officially support it
Some devs from the community tried to make it work, you can find their tests into #v2-testing
channel into our Discord server
If you're interested into helping out, I can provide some guidance to get to the bottom of it and possibly support it officially
Thanks for your explanation and your reference, @IlCallo!
I have read that one person mocked parts of $q
to get tests running as a workaround. I would be happy to give it a go with your support. How should we continue?
First of all you'll need to understand the root cause of the problem
IIRC I explored that in the past and the problem possibly relies in how testing library mount components, using a custom render
function which wraps VTU
This AE uses VTU directly, and this may cause a conflict
Care to investigate in that area and report back what you find?
Closing due to lack of response Please comment here if you found a solution for your problem, it could be useful for other devs
I have only managed to look into this issue now again.
Different builds of @vue/test-utils
are imported as described in https://github.com/testing-library/vue-testing-library/issues/279#issuecomment-1336396037, so this is an issue related and already reported to @testing-library/vue
. The workaround described there works fine for me.
Thanks for sharing your solution! 😁
Software version
OS: Windows 10 Enterprise Node: 18.15.0 NPM: 9.4.1
What did you get as the error?
What were you expecting?
The example test rewritten using Testing Library also passes.
What steps did you take, to get the error?
quasar ext add @quasar/testing-unit-vitest
.npm install --save-dev @testing-library/vue
.