Комментарии:
Awesome collaboration.
Ответить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) )
how to mock the unexported functions in vitest with @React-testing/Library
Ответить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 :)
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!
HI, Jason, what browser are you using? I'm dying to know!
ОтветитьOMG !!!
Ответить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();
});```
Very good presentation
ОтветитьExcellent discussion!
ОтветитьAnthony Fu has been a huge blessing to the Vue community. Thanks Jason for having him on.
ОтветитьI've got a old Gatsby project at work that uses Jest snapshots and this makes it look practically ancient!
ОтветитьVery cool episode! Vite ecosystem is so good that I might start looking at using Vue instead of React.
ОтветитьFunction testing is already fast enough. I expect to see React testing here cause it is really slow with testing library 😥
Ответитьthanks for your video, it's wonderful!
ОтветитьAnthony Fu! THE LEGEND himself! Thank you Jason
Ответить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! 💪🏽
ОтветитьAnthony the legend
ОтветитьWow hahah so they started out with a name. Damn! Another exciting episode Jason
Ответить