Mock External Module Dependencies
In this lesson, we will learn about External Modules Dependencies.
We'll cover the following
Testing Methods
What should we test in methods? That’s a question that we had when we started doing unit tests. Everything comes down to testing what that method does. This means that we need to avoid calls to any dependency; so, we’ll need to mock them.
Let’s add a submit event to the form in the Form.vue
component that we created in the last chapter:
Get hands-on with 1200+ tech skills courses.