Laravel Vue Testing

Laravel comes with some very good testing tools but I also wanted to use Vue’s testing tools on my components. I ended up reading quite a few tutorials and watching a few videos before finding enough information to get it working.

I decided a good idea would be to list the most helpful resources and also setup a GitHub repo for future reference.

My starting point was the series of videos on Laracasts. Despite being nearly 3 years old the videos contain some very useful tips and techniques. Some of the examples need a bit of updating but I’d highly recommend watching all of them to get started.

I found two other articles that were of use although I did find I couldn’t follow them exactly, but it gave enough information that I could get up and running.

https://nick-basile.com/blog/post/testing-a-vuejs-and-laravel-todo-app

https://dev.to/tuandm/how-to-test-vue-components-with-laravel-mix-and-mocha-3kgc/

Hopefully if you’re experiencing similar problems getting started these resources and my GitHub repo will help you out.