Simple play icon Course

Testing Vue 2 Components with Jest 26

by Daniel Stern

Vue applications are powerful and easy to build, but for a large project or a big team, a testing solution is needed. This course will teach you to test Vue components with Jest, ensuring that they, and your whole application, function correctly.

What you'll learn

Vue applications are designed to work at all levels of complexity. However, as projects get larger, it becomes harder and harder to test existing components against regression.

In this course, Testing Vue Components with Jest, you’ll learn to ensure the proper functioning of your Vue Components and the whole application by intelligently applying the Jest framework.

First, you’ll explore how to install Jest and integrate it with a boilerplate Vue project .

Next, you’ll discover how to write tests for Vue components, integrating mocks, snapshots and async tests to create a reliable test suite.

Finally, you’ll learn how to integrate a Jest-enabled project with continuous integration, greatly reducing the amount of effort needed to deploy your application.

When you’re finished with this course, you’ll have the skills and knowledge of Vue and Jest needed to test any personal project, work with a large team using Vue and Jest, or create basic dev ops for Vue teams wishing to use Jest.

About the author

Daniel Stern is a coder, web developer and programming enthusiast from Toronto, Ontario, where he works as a freelance developer and designer. Daniel has been working with web technologies since the days of the dial-up, and is especially keen on JavaScript, CSS, Angular, React and TypeScript. Over the course of his work as an open-source developer, he's created many community-standards web tools including Angular Audio and Range.CSS. His tool, Range.CSS, was featured in a guest article on CSS-T... more

Ready to upskill? Get started