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
Auf dieser Seite können Sie das Online-Video #33 - Unit Testing Setup & Basics - Vue 3 (Options API) Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer KoderHQ 23 November 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,599 Mal angesehen und es wurde von 72 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!