Testing Vue.js Applications
Authors: Edd Yerburgh
ISBN-10: 1617295248
ISBN-13: 9781617295249
Edition 版次: 1
Publication Date 出版日期: 2018-12-17
Print Length 页数: 272 pages
Book Description
By finelybook
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.
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
What’s inside
Unit tests,snapshot tests,and end-to-end tests
Writing unit tests for Vue components
Writing tests for Vue mixins,Vuex,and Vue Router
Advanced testing techniques,like mocking
Chapter 1.Introduction to testing Vue applications
Chapter 2.Creating your first test
Chapter 3.Testing rendered component output
Chapter 4.Testing component methods
Chapter 5.Testing events
Chapter 6.Understanding Vuex
Chapter 7.Testing Vuex
Chapter 8.Organizing tests with factory functions
Chapter 9.Understanding Vue Router
Chapter 10.Testing Vue Router
Chapter 11.Testing mixins and filters
Chapter 12.Writing snapshot tests
Chapter 13.Testing server-side rendering
Chapter 14.Writing end-to-end tests