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).
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 !
I'm working on a project that needs oauth implementation for multiple VCS providers and hosting providers to list the user's servers and repos.
The problem is, I want to make it as simple as possible to add new providers in the future...
The first idea I came with was to add two table, vcs_providers and hosting_providers, both containing a "class" attribute referencing a surcharged class. This class would surcharge the VcsProvider (or HostingProvider) eloquent model, and implements methods such as server(), repositories()...
Here's a simple class diagram I just made. [!UML](https://i.imgur.com/IFh5Lqa.png
I think this idea is odd... I don't know why, but I think there's a way better architecture to enhance this, but what would it be ?