Testing Vue.js Applications is a comprehensive guide to testing Vue components, methods, events, and output. Author Edd Yerburgh, creator of the Vue testing utility, explains the best testing practices in Vue along with an evergreen methodology that applies to any web dev process.

A comprehensive guide to Vue.js testing by the author of the official testing utility.

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.

Where to go from here

10.3.2 Using router parameters in the store

10.3.1 Adding the route to the store

3.2.4 Testing the text content of an element

1.2.6 Learning when not to test

takes you straight to the book

Written for Vue developers at any level.

About the author

Edd Yerburgh is a JavaScript developer and Vue core team member. He’s the main author of the Vue Test Utils library and is passionate about open source tooling for testing component-based applications.

We interviewed Edd as a part of our Six Questions series. Check it out here.