Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Testing Vue.js Components

Get access to this course, 18 others, and future Vue.js courses!

How to test that a Vuex Store is injected into a Vue.js component

Sometimes when we're working with Vuex, it's essential to test that our components are properly integrated with Vuex.

In this lesson, we're learning how to test that a Vuex Store is injected into our Vue.js component.

We'll also show you a neat tip you should use to not pollute your global Vue instance when working with Vue plugins (such as Vuex).

This testing lesson requires knowledge about Vuex and is optional. If you want to learn Vuex, you can watch our popular Vuex for Everyone course.