Testing Vue.js in Rails with Webpacker and Jest
In the project I'm working on, I was given the task of investigating how to integrate [Vue.js](https://vuejs.org/) with our existing Rails app. So I started reading the official guide, watching tutorials and reading various posts until I finally got a fully working Vue component. Finally it was time to write some tests, but unfortunately, the [Webpacker](https://github.com/rails/webpacker) gem doesn't include testing configuration, so I had to do it on my own. To my surprise, I found that there wasn't much documentation on how to do the setup. So I figured I'd make this post to share with you how I managed to eventually get it working.
Tags: vue, rails, webpack, jest