Testing Vue 2 Components with Jest 26
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.
Table of contents
- Version Check 0m
- A Vue-Jest Testing Scenario 3m
- Course Roadmap 2m
- Before Starting, You Should Be Familiar With… 2m
- Installing and Running the Demo Application 4m
- Installing the Project Files: Demo 5m
- What Is Jest? 5m
- Installing and Configuring Jest 1m
- Installing and Configuring Jest: Demo 5m
- Setting up a Test Suite 2m
- Setting up a Test Suite: Demo 5m
- Summary 1m
- Why Test Vue Components with Jest? 1m
- Testing Vue Components with Jest: Workflow 3m
- Applying Exception Tests 2m
- How Does Unit / Exception Testing Work? 2m
- Snapshot Tests 1m
- Test Setup and Teardown with Jest 3m
- Testing Vue Components for Exceptions 7m
- Asynchronous Testing with Jest 2m
- Testing Asynchronous Methods in Vue Applications 6m
- Mocking External Dependencies 7m
- Summary 1m