Episode 8

VoV 008: Getting Started with TDD on Vue.js with Nick Basile


April 24th, 2018

1 hr 5 mins 4 secs

Your Hosts
Special Guest

About this Episode


  • Divya Sasidharan
  • Chris Fritz

Special Guests: Nick Basile

In this episode of Views on Vue, the panelists discuss getting started with TDD on Vue.js with Nick Basile. Nick defines what TDD and unit tests are and how you can use them to make your code better in the long run. They also discuss when using TDD wouldn’t be helpful and the importance of trial and error when it comes to tests. Nick then gives different resources newcomers to Jest can go to so that they can learn more and discusses Vue Test Utils.

In particular, we dive pretty deep on:

  • What does your setup look like?
  • Vue.js
  • Jest
  • Have you used other tools other than Jest?
  • Mocha
  • What attracted you to Jest?
  • Define TDD and unit tests
  • What are examples of not helpful uses for TDD and unit tests?
  • How to know when a test is being to be too specific
  • Trial and error is very important when it comes to writing tests
  • Try to stay away from really specific tests
  • Asking questions when writing tests
  • How likely is this going to break and change over time?
  • Write tests as a way to self-document your own code
  • Write tests for your future self
  • Vue Test Utils
  • Resources for people getting into Jest
  • Testing Vue course
  • Jest documentation
  • What is Vue Test Utils?
  • Have you worked with headless browsers?
  • When wouldn’t you want to do TDD?
  • And much, much more!