SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial

The home for developers

Track your course progress, manage projects, and find your dream job - all in one place.

Start Your Free Trial

7 Day Free Trial. Cancel Anytime.

SitePoint Premium

  • Access to 700+ courses
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
  • Library/
  • Text courses/
  • Testing Vue.js Components with Jest
Testing Vue.js Components with Jest

Testing Vue.js Components with Jest


Course details

3.0∙1 Rating1 review

Published
February 2019
Publisher
Alex Jover Morales
Chapters
9

About the course

Vue.js has become the most popular framework. People is excited about it, and that's no surprise given how productive, easy to use and flexible it is. You've probably already use it, but... Have you done testing in Vue.js?

Unit testing in modern component based JavaScript frameworks is not easy. Components are connected to each other and the browser adds a layer of UI, which makes everything so dependent while we must test components in isolation. We want the test suite to be reliable and to run fast as well.

This book shows you by practise how to test easily Vue.js components and take advantage of the fully featured Jest testing framework. It will guide you through testing styles and structure as well as testing behaviours of you Vue.js components. You'll see how to apply techniques such as snapshot testing, shallow rendering, module dependency mocking and module aliasing to make smoother and cleaner your tests.

Author

Alex Jover Morales

Alex Jover Morales

Course Outline

Chapter 1: Write the first Vue.js Component Unit Test in Jest
Chapter 2: Test Deeply Rendered Vue.js Components
Chapter 3: Test Styles and Structure
Chapter 4: Test Properties and Custom Events
Chapter 5: Test Computed Properties and Watchers
Chapter 6: Test Methods and Mock Dependencies
Chapter 7: Test Vue.js Slots
Chapter 8: Enhance Jest configuration with Module Aliases
Chapter 9: Snapshot Testing

Reviews
3.0

1 total

0
0
1
0
0

Course details

3.0∙1 Rating1 review

Published
February 2019
Publisher
Alex Jover Morales
Chapters
9

SitePoint

Stuff we do

  • Premium
  • Newsletters
  • Learning paths
  • Library
  • Forums

Contact

  • Contact us
  • FAQ
  • Publish your book
  • Write an article
  • Advertise

About

  • Our Story
  • Corporate Memberships
  • Start free trial
  • Login

Connect

  • RSS
  • Facebook
  • Twitter (X)
  • Instagram

Subscribe to our newsletter

Get the freshest news and resources for developers, designers and digital creators in your inbox each week

© 2000 – 2025 SitePoint Pty. Ltd.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Terms of usePrivacy policy