Learn Vitest and Testing Library In 40 Minutes (Дата оригинальной публикации: )
👉 Want to win prizes Break the Code 2!? Play for free here -
Vitest is an amazing fast unit-test testing framework for Vue, React, and Svelte. In this video I discuss how to set it up, how to create some tests, and some cool features of it, including in-source testing and mocking responses with msw.
👉Check out my last video on learning to code in 3 months
👉 Sign up and get free Vue cheat sheets and updates!
Need some mentoring, help with a project, get a career in tech, level up your skills? Check it out
👉
0:00 Introduction
0:54 .Tech Domains
02:42 Why Vitest and Testing LIbrary
05:37 Installing vue latest
06:55 Running our first test
08:30 Creating our file
11:39 Creating our tests for
18:58 Creating snapshot testing
21:49 Using .only and .skip and .concurrent
22:20 Vitest run and test coverage support
23:53 Adding mocking with msw
24:38 Adding my-pokemon component for mocking
28:03 Adding mock response to .ts file
29:00 Install msw and whatwg-fetch msw
29:30 Setting up msw (for mocking http responses)
32:05 Creating my-pokemon component test
35:53 Creating in-source testing
39:37 Conclusion
Links
1 view
111
27
4 months ago 00:25:40 4
We May Not Need Component Testing | Live 2024
4 months ago 00:25:39 17
We May Not Need Component Testing | Live 2024 (Дата оригинальной публикации: )
4 months ago 00:27:22 8
Frontend Nation 2024: Jessica Sachs - Anatomy of a Test Runner: What Vitest Keeps Getting Right (Дата оригинальной публикации:
5 months ago 00:56:00 3
Frontend Nation 2024: Vite Core Team Panel (Дата оригинальной публикации: )
6 months ago 00:02:09 49
Master Class: 2024 Edition (Launching 28 May 2024!) (Дата оригинальной публикации: )
9 months ago 00:58:43 13
Nation 2024: QnA Live with the Vue Core Team (Дата оригинальной публикации: )
9 months ago 00:40:58 13
Nation 2024: We may not need component (unit) testing by Maya Shavin (Дата оригинальной публикации: )
10 months ago 00:07:06 27
Maya Shavin is coming to Nation 2024! (Дата оригинальной публикации: )
1 year ago 00:51:47 11
Nuxt Nation 2023: Vite Core Panel - Vite Under a Lense (Дата оригинальной публикации: )
1 year ago 00:04:07 33
Anthony Fu - VueUse for writing flexible and reactive Vue composables: Forge Episode 4 (Дата оригинальной публикации:
1 year ago 00:10:19 10
Quickly Test your Apps with Vitest (Дата оригинальной публикации: )
1 year ago 00:54:43 5
Protect Your App With Route Protection, Serverless Lambdas, Amplify and More! (Дата оригинальной публикации: )
1 year ago 00:40:11 24
Learn Vitest and Testing Library In 40 Minutes (Дата оригинальной публикации: )
1 year ago 00:58:22 9
Core Team Live Panel Discussion by Anthony Fu, Kia Ishii and Thorsten Lünborg
1 year ago 00:36:23 4
20230201_Vue: What to Expect in 2023 by Evan You - Nation 2023
1 year ago 00:00:46 67
Nation 2023 is coming! 🌟
1 year ago 00:00:49 52
20221215_Join the greatest industry educators at Nation 2023 🎙
1 year ago 00:03:36 7
20220420_Q&A Session with Natalia Tepluhina: Nation 2022
2 years ago 00:42:25 1
Testing with Vitest FREE COURSE ⚡️
2 years ago 00:01:32 10
NEW COURSE ANNOUNCEMENT | Brand-New Course Release