In this Vue 3 tutorial, we learn about Unit testing with Jest. We cover how to set up a testing environment and the basics of writing and running tests with the Jest test runner.
We cover the following topics:
1. What is Unit Testing
2. Lesson project
3. File structure & naming
4. How to write a test
5. How to run a test
6. Alternative test method
7. How to group tests
8. How to skip a test
9. Test failures
10. Sanity tests
Note that this tutorial is for the Vue 3 Options API (which is similar to Vue 2). We later move on to the Composition API and then the Script Setup (3.2 update)
Jest Test Runner
https://jestjs.io/
The Jest Expect API
https://jestjs.io/docs/expect
Vue CLI Unit Jest Plugin
https://cli.vuejs.org/core-plugins/un...
Vue Jest
https://github.com/vuejs/vue-jest
Vue Testing Utilities
https://next.vue-test-utils.vuejs.org/
This lesson is also available in written format
https://www.koderhq.com/tutorial/vue/...
Check out the Vue 3 for Beginners playlist for more Vue tutorial videos
• Vue 3 for Beginners
Subscribe to the channel and never miss a lesson
/ @koderhq
Visit the website for a wide range of programming tutorials
https://www.koderhq.com
On this page of the site you can watch the video online #33 - Unit Testing Setup & Basics - Vue 3 (Options API) Tutorial with a duration of hours minute second in good quality, which was uploaded by the user KoderHQ 23 November 2022, share the link with friends and acquaintances, this video has already been watched 8,599 times on youtube and it was liked by 72 viewers. Enjoy your viewing!