Useful Libraries for Testing
Vue Test Utils provides useful methods for testing Vue components. Community members have also written some additional libraries which either extend
vue-test-utils with extra useful methods, or provide tools for testing other things found in Vue applications.
vuex-mock-store provides a simple and straightforward mock store to simplify testing components consuming a Vuex store.
jest-matcher-vue-test-utils adds additional matchers for the Jest test runner with the goal of making assertions more expressive.
jest-mock-axios allows you to easily mock
axios, a common HTTP client, in your tests. It works out of the box with Jest, and the author provides guidance on supporting other test runners in the documentation.