#33 - Unit Testing Setup & Basics - Vue 3 (Options API) Tutorial
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/unit-jest.html 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/unit-test/ Check out the Vue 3 for Beginners playlist for more Vue tutorial videos https://www.youtube.com/playlist?list=PLFAU47Id44XG48v5dPPTGMgJfjMnsU8Bw Subscribe to the channel and never miss a lesson https://www.youtube.com/channel/UCz6k9pRLevdJGAsMMAVSb_Q?sub_confirmation=1 Visit the website for a wide range of programming tutorials https://www.koderhq.com
Download
0 formatsNo download links available.