Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

About the course

Learn how to test your Vue.js components with Jest and the official unit testing library for Vue.js - Vue Test Utils

In this course, you’ll learn everything you need to know to write proper unit tests for your Vue components.

By the end of this testing course you will know

  • Which tools are required for an efficient testing workflow
  • How to mount and render your Vue components
  • How to programmatically interact with your components through Vue Test Utils
  • How to test computed properties and watchers
  • How to test Vue.js lifecycle methods
  • How to traverse the DOM and test …
  • How to stub child components
  • How to test that a Vuex Store is injected properly

If you’re not familiar with Jest, the testing framework. We recommend checking out our Test with Jest course before you tackle Testing Vue.js Components.

2

Component Testing Exercises

0 lessons • 0 min
icon
Exercise 1: Rendering a List of Users
Coming Soon
icon
Exercise 2: Interacting with a Form
Coming Soon