Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
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...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom