Fast Unit Testing With Vitest

Fast Unit Testing With Vitest

Learn With Jason

1 год назад

29,254 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@WIMS-Cardano-ud5rw
@WIMS-Cardano-ud5rw - 11.12.2023 08:04

Awesome collaboration.

Ответить
@abuzain859
@abuzain859 - 10.12.2023 16:45

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\node_modules\jsdom\lib\jsdom\browser\not-implemented.js:9:17) )

Ответить
@user-vi3im8go4c
@user-vi3im8go4c - 08.12.2023 09:39

how to mock the unexported functions in vitest with @React-testing/Library

Ответить
@jsonkody
@jsonkody - 01.11.2023 18:30

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 :)

Ответить
@HG-wu6eb
@HG-wu6eb - 22.08.2023 11:31

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!

Ответить
@jiaqi222
@jiaqi222 - 17.08.2023 09:34

HI, Jason, what browser are you using? I'm dying to know!

Ответить
@zahramohammadpour6689
@zahramohammadpour6689 - 30.07.2023 14:26

OMG !!!

Ответить
@oanacristea2572
@oanacristea2572 - 21.07.2023 02:25

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();
});```

Ответить
@kousheralam8657
@kousheralam8657 - 26.06.2023 16:11

Very good presentation

Ответить
@PerpetualEducation
@PerpetualEducation - 16.06.2023 07:05

Excellent discussion!

Ответить
@olatunjiolakunle6908
@olatunjiolakunle6908 - 19.03.2023 16:19

Anthony Fu has been a huge blessing to the Vue community. Thanks Jason for having him on.

Ответить
@katteos
@katteos - 01.03.2023 05:54

Amazing Jason

Ответить
@IainSimmons
@IainSimmons - 19.02.2023 04:26

I've got a old Gatsby project at work that uses Jest snapshots and this makes it look practically ancient!

Ответить
@ermakamre
@ermakamre - 17.02.2023 17:39

Very cool episode! Vite ecosystem is so good that I might start looking at using Vue instead of React.

Ответить
@yudisupriyadi8239
@yudisupriyadi8239 - 13.02.2023 16:36

Function testing is already fast enough. I expect to see React testing here cause it is really slow with testing library 😥

Ответить
@bojack4800
@bojack4800 - 09.02.2023 08:09

thanks for your video, it's wonderful!

Ответить
@_the_one_1
@_the_one_1 - 04.02.2023 17:14

Anthony Fu! THE LEGEND himself! Thank you Jason

Ответить
@nandoomb
@nandoomb - 04.02.2023 06:00

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! 💪🏽

Ответить
@mumk
@mumk - 04.02.2023 03:23

Anthony the legend

Ответить
@khairulhaaziq2332
@khairulhaaziq2332 - 04.02.2023 01:58

Wow hahah so they started out with a name. Damn! Another exciting episode Jason

Ответить