🧪

Testing

Testing in Vue is quite a significant topic in itself. The recommended reading here is a book written by the creator of Vue Test Utils as this covers everything you'd need in context and depth:

Testing Vue.js Applications
Buy Testing Vue.js Applications 1 by Yerburgh, Edd (ISBN: 9781617295249) from Amazon's Book Store. Everyday low prices and free delivery on eligible orders.
https://www.amazon.co.uk/Testing-Vue-js-Applications-Edd-Yerburgh/dp/1617295248/ref=sr_1_3?dchild=1&keywords=vue+testing&qid=1609365271&sr=8-3

Of course the free online docs are available for both Jest and Vue Test Utils too:

Getting Started · Jest
Install Jest using : yarn add --dev jest npm install --save-dev jest Note: Jest documentation uses yarn commands, but npm will also work. You can compare yarn and npm commands in the yarn docs, here. Let's get started by writing a test for a hypothetical function that adds two numbers.
https://jestjs.io/docs/en/getting-started
Introduction | Vue Test Utils
Utilities for testing Vue components
https://vue-test-utils.vuejs.org/