Myvideo

Guest

Login

Learn Vitest and Testing Library In 40 Minutes (Дата оригинальной публикации: )

Uploaded By: Myvideo
1 view
0
0 votes
0

👉 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

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later