Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Laracasts

Testing Vue

via Laracasts

Overview

How in the world are we supposed to unit test Vue components? Is it even possible? Why, yes. Yes it is! I'll show you the full process, step by step. Not only will you learn the necessary tooling, but we'll also review the ins and outs of testing your client-side code. Have you ever wanted to use TDD for your Vue components? I'll show you how.

Syllabus

  • TDD Your First Vue Component From Scratch
  • Test Single File Components
  • Setting Data and Asserting Styles
  • Implementation Details Versus Rendered Output
  • Asserting Emitted Events
  • Hooking Into Laravel Mix
  • TDD a Question Component With Helper Functions
  • Mocking Axios Calls
  • Testing Asynchronous Actions and Timers
  • Cleaner Asynchronous Mocha Tests

Taught by

Jeffrey Way

Reviews

Start your review of Testing Vue

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.