Skip to Content
Front-End Development Projects with Vue.js
book

Front-End Development Projects with Vue.js

by Raymond Camden, Hugo Di Francesco, Clifford Gurney, Philip Kirkbride, Maya Shavin, Dániel Szabó
November 2020
Beginner to intermediate
774 pages
11h 58m
English
Packt Publishing
Content preview from Front-End Development Projects with Vue.js

12. Unit Testing

Overview

In this chapter, we will look at approaches to unit testing Vue.js applications in order to improve our quality and speed of delivery. We will also look at using tests to drive development using Test-Driven Development (TDD).

As we proceed, you will gain an understanding of why code needs to be tested and what kinds of testing can be employed on different parts of a Vue.js application. You will see how to unit test isolated components and their methods using shallow rendering and vue-test-utils, and you will learn how to test asynchronous component code. Throughout the course of the chapter, you will gain familiarity with techniques to write efficient unit tests for mixins and filters. Toward the end of the chapter, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Progressive Web Applications with Vue.js: Reliable, Fast, and Engaging Apps with Vue.js

Building Progressive Web Applications with Vue.js: Reliable, Fast, and Engaging Apps with Vue.js

Carlos Rojas

Publisher Resources

ISBN: 9781838984823Supplemental Content