Fast Unit Testing With Vitest

  Рет қаралды 29,828

Learn With Jason

Learn With Jason

Жыл бұрын

Vitest is a Vite-native unit testing framework that’s Jest-compatible. Core maintainer Anthony Fu will teach us how to use it in this episode.

Пікірлер: 35
@olatunjiolakunle6908
@olatunjiolakunle6908 Жыл бұрын
Anthony Fu has been a huge blessing to the Vue community. Thanks Jason for having him on.
@nandoomb
@nandoomb Жыл бұрын
Man... I don´t understand... Why are you with only 34k subscribers? Your channel is one of the best when we talk about programming. Keep doing your job as you do. Congrats man! 💪🏽
@_the_one_1
@_the_one_1 Жыл бұрын
Anthony Fu! THE LEGEND himself! Thank you Jason
@learnwithjason
@learnwithjason Жыл бұрын
it was such a pleasure having Anthony on the show 💜
@WIMS-Cardano-ud5rw
@WIMS-Cardano-ud5rw 7 ай бұрын
Awesome collaboration.
@PerpetualEducation
@PerpetualEducation Жыл бұрын
Excellent discussion!
@mickwhyte4204
@mickwhyte4204 2 ай бұрын
Great intro guys. Thanks.
@bojack4800
@bojack4800 Жыл бұрын
thanks for your video, it's wonderful!
@khairulhaaziq2332
@khairulhaaziq2332 Жыл бұрын
Wow hahah so they started out with a name. Damn! Another exciting episode Jason
@learnwithjason
@learnwithjason Жыл бұрын
proving that domain-name driven development DOES work! 💀
@kousheralam8657
@kousheralam8657 Жыл бұрын
Very good presentation
@IainSimmons
@IainSimmons Жыл бұрын
I've got a old Gatsby project at work that uses Jest snapshots and this makes it look practically ancient!
@Benjamin-Chavez
@Benjamin-Chavez 4 ай бұрын
This comment made me stop second guessing my choice to use vitest instead of jest. 🙏
@ermakamre
@ermakamre Жыл бұрын
Very cool episode! Vite ecosystem is so good that I might start looking at using Vue instead of React.
@mumk
@mumk Жыл бұрын
Anthony the legend
@learnwithjason
@learnwithjason Жыл бұрын
💯
@Gaijin101
@Gaijin101 6 ай бұрын
The man The legend
@HG-wu6eb
@HG-wu6eb 11 ай бұрын
Hello! May i ask you a question? How can we write unit tests in Nuxt 3 application? I tried '@nuxt/test-utils', 'vitest', Vue testing library, 'nuxt-vitest' and something else (I don't remember everything I tried to use as spent so much time to figure out in that). I could write test to test simple calculating functions and that was all. No ability to get DOM element, to simulate user event, to check if some function was invoked, to check state updates - nothing really valuable tests could be written. Could anybody please advise me where to find the solution? Thank you!
@hungify
@hungify 7 ай бұрын
It works which doesn't have any problem. Perhaps, do did it the wrong way.
@abuzain859
@abuzain859 7 ай бұрын
HeyJason! I watched your video and it is awesome . Now i am using the Vitest in my project but I am getting this error : ( Not implemented: window.computedStyle(elt, pseudoElt) at module.exports (C:\Users\Faizan\Desktop\full-stack ode_modules\jsdom\lib\jsdom\browser ot-implemented.js:9:17) )
@captainalpha4853
@captainalpha4853 8 ай бұрын
what's the name of the extension you're using to kind of 'translate' the error and simple terms like at 49:29? Thanks for the video!
@learnwithjason
@learnwithjason 8 ай бұрын
this is Matt Pocock’s Total TypeScript extension: www.totaltypescript.com/vscode-extension
@captainalpha4853
@captainalpha4853 8 ай бұрын
@@learnwithjason thank you!
@ysupriyadi123
@ysupriyadi123 Жыл бұрын
Function testing is already fast enough. I expect to see React testing here cause it is really slow with testing library 😥
@jsonkody
@jsonkody 9 ай бұрын
Wow .. main panel on right side .. interesting idea :O Why I did not try it ever before? It's possibly better. I Always hated how the navigation shifting my code, constantly playing with width, switching it on/off etc. Thx :)
@learnwithjason
@learnwithjason 9 ай бұрын
yeah, I wanted to hate it at first but it really feels better for me
@jiaqi222
@jiaqi222 11 ай бұрын
HI, Jason, what browser are you using? I'm dying to know!
@learnwithjason
@learnwithjason 11 ай бұрын
Arc!
@vengateshvaidyanathang550
@vengateshvaidyanathang550 Ай бұрын
Hey man the way you do this pair programming podcast is really !! Nice . It would be nice if I had also get same set of font styles you show in these podcasts can you please help to get it to my vscode 😅 tried googling but doesn’t work !!
@learnwithjason
@learnwithjason Ай бұрын
thanks! I use the Night Owl theme in VS Code with Operator Mono as my font
@zahramohammadpour6689
@zahramohammadpour6689 Жыл бұрын
OMG !!!
@katteos
@katteos Жыл бұрын
Amazing Jason
@learnwithjason
@learnwithjason Жыл бұрын
Thank you!
@oanacristea2572
@oanacristea2572 Жыл бұрын
You need to clear out the mock before or after each test. There are a few way to do so. I think something like this might work: ```afterEach(() => { vi.clearAllMocks(); vi.resetAllMocks(); });```
@kmylodarkstar2253
@kmylodarkstar2253 3 ай бұрын
Amazing video, really nice to work with vitest instead of jest, lovely DX. % @vitest/coverage-v8 does not work on Stackblitz. Report will be empty.
Unit Testing Vue Apps: Tips, Tricks, and Best Practices
29:51
Vue Mastery
Рет қаралды 12 М.
Mocking Asynchronous Functions with Jest
21:50
Swashbuckling with Code
Рет қаралды 68 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 20 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 18 МЛН
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 215 М.
How to test Vite projects using Vitest
46:26
LogRocket
Рет қаралды 11 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Next.js with React Testing Library, Jest, TypeScript
25:04
Dave Gray
Рет қаралды 58 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 75 М.
Why Vitest Is Better Than Jest
13:13
Web Dev Simplified
Рет қаралды 131 М.
Mocking Axios in Jest + Testing Async Functions
17:43
Leigh Halliday
Рет қаралды 83 М.
Learn Vitest and Testing Library In 40 Minutes
40:12
Program With Erik
Рет қаралды 54 М.
🧪 Test SvelteKit with TDD & VITEST 🧪
23:09
Johnny Magrippis
Рет қаралды 10 М.
Let's Learn SolidJS
1:29:39
Learn With Jason
Рет қаралды 27 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2,1 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 64 МЛН