#33 - Unit Testing Setup & Basics - Vue 3 (Options API) Tutorial

preview_player
Показать описание
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

The Jest Expect API

Vue CLI Unit Jest Plugin

Vue Jest

Vue Testing Utilities

This lesson is also available in written format

Check out the Vue 3 for Beginners playlist for more Vue tutorial videos

Subscribe to the channel and never miss a lesson

Visit the website for a wide range of programming tutorials
Рекомендации по теме
Комментарии
Автор

I do not have a problem with the AI voice. While it's not as personal, I find it's easier to concentrate on the content when I can ignore the voice. Keep up the amazing work.

jdhurrell
Автор

I am not sure who you are. But rather than hearing a robotic voice, it'd be better if you could speak of your own. Most of the viewers are not native speakers I believe. So, it doesn't matter if your English is not up to the mark. From my personal experience, nobody cares about grammar when you're teaching/speaking. Your pronunciation will go better day by day. You'll overcome this issue one day only by speaking. I saw that you've prepared lots of videos. You could speak by watching the script you prepared for the voiceover. And add them as subtitles so that whoever faces issues understanding will get them corrected. This way you could overcome the fear of the "I cannot speak English" problem.

I am telling you that because I still stutter while speaking. Sometimes I have to rephrase the whole sentence to make sense as I forget words in the middle of the sentence. But I have mostly overcome my fear while I was working with other people. Best of luck.

sirajul-anik