Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 91

Using mocks

In this video, we're going to be writing tests for our Home view component, and also learn about a very useful unit testing feature called mocks.

Creating file

Let's begin by creating a test file for the Home component. Before we do, though, we'll create a new subdirectory for view test, as we want our client test directory to have the same structure as the client directory itself. So let's go:

$ mkdir tests/unit/client/views

Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom