VoV 008: Getting Started with TDD on Vue.js with 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
Special Guests:
Nick Basile
Show Notes
Panel:
- 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!
Links:
- Vue.js
- Jest
- Mocha
- Vue Test Utils
- Testing Vue course
- Jest documentation
- Vue Enterprise Boilerplate
- Nick’s GitHub
- Nick-Basile.com
- @NickJBasile
Picks:
Chris
Divya
Nick
- Refactoring UI
- Toast of London
- Vue Fundamentals course coming soon on VueSchool
Special Guest: Nick Basile.
VoV 008: Getting Started with TDD on Vue.js with Nick Basile
0:00
Playback Speed: