Introduction to testing Vue applications -- Creating your first test -- Testing rendered component output -- Testing component methods -- Testing events -- Understanding Vuex -- Testing Vuex -- Organizing tests with factory functions -- Understanding Vue router -- Testing Vue router -- Testing mixins and filters -- Writing snapshot tests -- Testing server-side rendering -- Writing end-to-end tests.
Summary:
Web developers who use the Vue framework love its reliability, speed, small footprint, and versatility. Vue's component-based approach and use of DOM methods require you to adapt your app-testing practices. Learning Vue-specific testing tools and strategies will ensure your apps run like they should. With Testing Vue.js Applications, you'll discover effective testing methods for Vue applications. You'll enjoy author Edd Yerburgh's engaging style and fun real-world examples as you learn to use the Jest framework to run tests for a Hacker News application built with Vue, Vuex, and Vue Router. This comprehensive guide teaches the best testing practices in Vue along with an evergreen methodology that applies to any web dev process.
This resource is supported by the Institute of Museum and Library Services under the provisions of the Library Services and Technology Act as administered by State Library of Iowa.