Skip to main content
CF

Testing Vue.js Components

1h 6m 20s
English
Paid

Testing Vue.js Components is a 11-lesson 1 hour 6 minutes self-paced course by Vue School. Learn how to test your Vue.

Course facts

Lessons
11
Duration
1 hour 6 minutes
Level
All levels
Language
English
Updated
Instructor
Vue School
Price
Premium

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

Additional

https://github.com/vueschool/testing-vue-components

Who teaches Testing Vue.js Components? Vue School

Vue School thumbnail

Vue School (vueschool.io) is a Greece-based Vue.js training platform founded by Alex Kyriakidis, an early Vue community member and one of the longest-running independent Vue educators. Vue School operates as both an on-demand course platform and a Vue / Nuxt consulting business, with course material that often emerges from real client engagements.

Course material covers the full Vue ecosystem: Vue 3 fundamentals through advanced Composition API patterns, Nuxt 3 production deployment, Pinia state management, Vue Router, the testing track with Vitest, TypeScript with Vue, real-time features with Pusher / WebSockets, and the broader full-stack Vue work. Vue School also publishes the popular Mastering Pinia course in collaboration with Pinia's author Eduardo San Martín Morote.

The CourseFlix listing under this source carries over 30 Vue School courses spanning that range. Material is paid; Vue School runs on per-course or membership pricing on the original platform. Courses are aimed at Vue developers from beginner through senior level building production Vue applications.

What lessons are included in Testing Vue.js Components?

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 11 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Installing Vue Test Utils
All Course Lessons (11)
#Lesson TitleDurationAccess
1
Installing Vue Test Utils Demo
05:16
2
Mounting Components with Vue Test Utils
07:01
3
The Wrapper Object
04:21
4
Learn How To Test Computed Properties and Watchers
06:48
5
Learn How To Test Vue.js Methods
09:23
6
Learn How to Test Vue.js Lifecycle Methods
07:52
7
Traversing The DOM
04:37
8
How to Stub a Vue.js Child Component
04:25
9
How to test that a Vuex Store is injected into a Vue.js component
05:45
10
Exercise 1: Rendering a List of Users
06:26
11
Exercise 2: Interacting with a Form
04:26
Unlock unlimited learning

Get instant access to all 10 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

What courses are similar to Testing Vue.js Components?

More courses by Vue School

Frequently asked questions

What prerequisites should I have before taking this course?
Before enrolling in this course, you should have a basic understanding of JavaScript and Vue.js. Familiarity with Vue.js components and their lifecycle, as well as a basic grasp of unit testing concepts, will be beneficial for following along with the lessons on testing Vue.js components using Jest and Vue Test Utils.
What will I be able to build or test by the end of the course?
By the end of the course, you will be able to write unit tests for various aspects of Vue.js components, including computed properties, methods, and lifecycle methods. You will also complete exercises such as rendering a list of users and interacting with a form, which solidify your understanding of how to effectively test Vue.js components.
Who is the target audience for this course?
This course is designed for developers who are familiar with Vue.js and want to enhance their skills by learning how to write and implement unit tests for Vue.js components. It is particularly useful for those who aim to improve the reliability and maintainability of their Vue.js applications through testing.
Does this course cover the use of Vuex in testing?
Yes, the course includes a lesson on how to test that a Vuex store is injected into a Vue.js component. This will help you understand how to test components that rely on Vuex for state management.
How does this course compare in depth to other Vue.js testing courses?
This course focuses specifically on testing Vue.js components using Jest and Vue Test Utils, providing detailed lessons on testing component properties, methods, and lifecycle methods. It offers targeted exercises to reinforce these concepts. It may not cover broader testing topics outside of Vue.js components, such as end-to-end testing frameworks.
What topics are not covered in this course?
The course does not cover end-to-end testing or testing frameworks beyond Jest and Vue Test Utils. It focuses solely on unit testing of Vue.js components, so topics like integration testing or using other testing libraries are not included.
What is the expected time commitment for completing this course?
The course consists of 11 lessons, each focusing on different aspects of testing Vue.js components. The specific runtime is not provided, but students should allocate time for both the instructional material and the practical exercises included in the course, such as rendering a list of users and interacting with a form.