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.
Testing Vue.js 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
About the Author: Vue School
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.
Watch Online 11 lessons
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 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 |
Get instant access to all 10 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.
Learn more about subscriptionRelated courses
-
Updated 2y agoVue 3, Nuxt.js and Laravel: A Practical Guide
By: UdemyLearn how to create 3 different apps with Vue 3, Nuxt.js and Laravel. The first app will be an Admin app using Vue 3 Composition API The second app will be an I10h 17m5/5 -
FreeUpdated 2y agoVue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
By: UdemyNo matter at which Metric you look at (Google Trends, Github Stars, Tweets ...) VueJS is the Shooting Star in the World of JavaScript Frameworks - it simply is19h 57m5/5 -
Updated 1y agoCourse: Large Scale Apps with Vue, Vite and TypeScript
By: Damiano FuscoEmbark on a journey to build scalable and maintainable frontends using Vue 3, Vite, and TypeScript.5/5