Dusk testing vs. Vue unit tests

Posted 3 months ago by jacquet-clement

Hello everybody,

I'm struggling finding the best way to test my vue SPA.

I've tried using Jest & vue-test-utils to unit test my components / routes / guards / store, but I find it very hard to code (especially testing guards / router / store, there is way to much code to test one single feature).

On the other hand, Dusk is really easy to use but can't go as deep as javascript into testing the app.

I would like to know what are the benefits of using one over the other. And if there is some tips / packages that whould make my life easier testing my SPA.

Thanks a lot !

Please sign in or create an account to participate in this conversation.