Vue CLI 3 Quick Start Guide by Ajdin Imsirovic

Vue CLI 3 Quick Start Guide by Ajdin Imsirovic

Author:Ajdin Imsirovic [Ajdin Imsirovic]
Language: eng
Format: epub
Tags: COM060130 - COMPUTERS / Web / Design, COM051300 - COMPUTERS / Programming / Algorithms, COM056000 - COMPUTERS / Utilities
Publisher: Packt Publishing
Published: 2019-04-30T23:03:20+00:00


Testing in Vue CLI 3

In the previous chapter, we examined the role of Babel in modern JavaScript development. We've also seen some practical examples of using it in Vue. In this chapter, we will introduce testing in JS. We will get acquainted with testing in general and see it in practice using Jest and Cypress. We'll discuss assertions and test-driven development (TDD). We'll then move on to understanding how Jest and Cypress work with Vue CLI 3. We'll discuss test utils and test cases. Specifically, we'll look at the following:

Understanding Vue plugins

Adding the Jest plugin to our Vue app

Writing unit tests inside a Vue app with Jest

Running tasks from the project tasks page

Running unit tests inside the Vue CLI UI

Working with assertions

Implementing TDD

Working with Cypress



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.