Thanks so much for the tutorial! I couldn't figure out how to get vitest working before, I really appreciate how you went through the full setup and explained why we were setting certain things to certain values. Can't wait to see more in your TDD series
I really needed this one, I am switching to typescript and react-vite now and I am struggling with testing with jest library with typescript. This one is easier to configure and faster. You should continue this TDD serie dude, you will help a lot of young, beginners, junior developers like me
great video 😊 one thing to note is you install the "jsdom" package at 4:50. In my setup this module is not needed when using testing-library's "jest-dom" because they both perform the same functionality of mimicking the browser DOM
This is really great, i am able to setup vitest with your help, although i am stuck with this error `TypeError: Class extends value undefined is not a constructor or null` while using amcharts4 in our project, wanted to ask do we have to do add any config to allow `Class extends` syntax?
Thanks for checking it out! If you're not using typescript, there's no tsconfig file, and the only differences should be with the file extensions. Rather than .ts and .tsx, you'll use .js and .jsx respsectively. If anything goes wonky let me know and I'll do my best to help out!
Finally, exactly what I was looking for. Simple and straight to the point. Thank you so much!
Thanks so much for the tutorial! I couldn't figure out how to get vitest working before, I really appreciate how you went through the full setup and explained why we were setting certain things to certain values. Can't wait to see more in your TDD series
I really needed this one, I am switching to typescript and react-vite now and I am struggling with testing with jest library with typescript. This one is easier to configure and faster. You should continue this TDD serie dude, you will help a lot of young, beginners, junior developers like me
great video 😊 one thing to note is you install the "jsdom" package at 4:50. In my setup this module is not needed when using testing-library's "jest-dom" because they both perform the same functionality of mimicking the browser DOM
Awesome, thanks for the note!
when you created a new folder at 3:01 was that to keep your testing separate from the project?
Really nice to link the vitest examples. It helped me much cause my setup was failing for some strange reasons
After 3 hours trying to configure i found your video and solve it in 10min.
Thank you so much!
So glad that it helped!
Nice presentation and super useful! Thank you so much, my component tests don't error out now. Keep up the great work!
This is a very important video. Thank you for sharing.
I loved that! It´s exactly what i was looking for. Thank you!
This is the most helpful thing.
Thanks a ton for this. Nice and easy setup, first time using vitest for me
Brother, great tutorial. I like it because it's spot on.
I have a problem, MISSING DEPENDENCY Cannot find dependency 'jsdom'
Should I install it as devdepend?
To be honest, It is first video in vitest. It is pretty straightforward to go the content. Thank for clear view
Great start. I'm taking a vitest course and want to learn to use it with both react and vue. Thank you
Thanks for walking us through this!
Thx for helping to understand and easy to implement 🙂
I'm glad this helped you out!
great explanation, can't wait for part 2
Excellent. Just what I was looking for. One little thing... it would be nice if the video was available in a higher resolution.
Thank you for posting this video.
This is really helpful for me buddy thanks so much
Thanks, you just saved me a ton of time
thank you so much man. this helped a lot
Page not found. The link is not working for me.
Thanks for this manual, I appreciate that ;)
I was so giddy after hearing the name😂. Randomly chose the video and heard a name from my best tech podcast🤭🤭
great intro to vitest! thanks
Most of the things are not working any more. I think they already changed the setups little bit.
This is really great, i am able to setup vitest with your help, although i am stuck with this error `TypeError: Class extends value undefined is not a constructor or null` while using amcharts4 in our project, wanted to ask do we have to do add any config to allow `Class extends` syntax?
Much thanks man! Helped a lot. 🎉
I found an alternative to adding those reference types by adding this to my tsconfig
"types": [
"vite/client",
"vitest/globals"
]
i get an error saying "no test files found", very weird... :( (im not using ts)
clear and helpful. thank you very much
Thanks lot brother save me lot of time !!!
You are really a saviour
but how do i test for huge components i am stuck
I know it is very late to ask, i am also stuck on how to test large components which have children and grandchildren. Did you find a way?
@@majaynathreddy5605 nope left testing
Thanks men, very clear!
Can you do this same thing with the T3 stack?
ABSOLUTLY AMAZING :)
Great video, thanks!
Hi! Would you be so kind to try using vitest with MSW, I would really appreciate it!
No tests weere found error
yes, there is no tutorial available like this set for react + vite for testing library.
Hey, great video.
I've a question. What if you are not using typescript. what changes will there be from your guide?
Thanks for checking it out! If you're not using typescript, there's no tsconfig file, and the only differences should be with the file extensions. Rather than .ts and .tsx, you'll use .js and .jsx respsectively.
If anything goes wonky let me know and I'll do my best to help out!
@@ericwinkdev thanks for the reply.
I’d figured it out.
your video helped.
@@ericwinkdev Creating that jsconfig file won't have any of what tsconfig,json has. What do I need to do about that?
Thank you so much!!!
Thankyou so much!
Life saver!
FYI: Vitest 0.33+= requires at least node16 to run properly.
Thanks a lot😍
thank you a lot!
THANKS
Good. Just why isn't Code suggesting methods from the testing libs?