How to become confident that your code is working exactly as intended? Syndicode advises you to start using TDD with Vue.js. Let’s get tests working in a new Vue project.
The easiest way to get up and running with TDD is to use the vue-cli tool. If you haven’t used it already, the vue-cli tool scaffolds a new Vue project for you from the command line.
When you use the vue-cli to scaffold a project, all you have to do is follow the prompts and then tests will automatically be set up for you. You can walk through the process with setup, details and writing test here.