Vitest Simplified
Vložit
- čas přidán 13. 02. 2022
- Vitest is a testing framework built on Vite that has some great optimizations for your Vite projects. It's a great option for testing in Vue 3!
LINKS
vitest.dev
vitest.dev/config/
✅ FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
learnvue.co/vue-3-essentials-...
follow me on twitter:
/ mattmaribojoc
🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - go.learnvue.co/vueschool
Music by Lukrembo
Super! Best example yet I've seen for its logical simplicity to get a vitest going with the out ds box app of Vue 3. My wish: for you to do the same having specified a bunch of common use cases...e.g. 1. assuring a dialog is opened and visible based on a button clicked 2. Integration testing with a mock axios call and validating the return vslues 3. Ensuring data in a table or other el expressions 4. A simple TypeScript example instead of JS. Thanks.
Again, great stuff, way to explain how to get started with Vitest. I am glad to support @antfu, one of the maintainers of bunch of Vite plugins and one of the authors of Vitest. Great work!
the best video, just make it work a lot easier and in just 2 minutes! very happy with your video
Would love to know how to manage mocked data
Awesome, please share more content about vitest, it's amazing! God bless u
thanks for the idea.
Thank you buddy!
Another very interesting library! I really wanted to learn about testing in Vue. Is Jest running behind the scenes or is Vitest a totally different library?
it's an entirely new testing framework!
Amazing video 🔥. A video on Vue 3 + Graphql would really help 😊
Since you can pass the props directly to components I would think that's the place to send mock data.
In case anyone was stumped like I was, you've gotta upgrade to Node >= v14 to use vitest
Great video.
Could you do a vitest tutorial about timers and ticks please?
In addition to testing, I was curious if you knew any good tools for creating automatic documentation from your vue code? The closest I have found was JSDoc thus far, although it seems more tailored for vanilla javascript.
there's a vue component documentation libraries, but i haven't really worked with any
Is wallaby vscode extensión compatible Sith vitest?
Thank you from Turkey bro :)
I never got a button when I installed vue/vite.
Posted a link to my stackoverflow, but it got removed, anyways.. I'm running into this error "Vitest error "TypeError: Cannot read properties of undefined (reading 'resolve')" (router.resolve)" Have you ran into that before?
Please give us more content "vitesting" more complex vue components
I feel like im watching a clone of fireship
what is your theme for your VSCode?
dracula!
prob better using testing lib render vs mount
Please create a complete e-commerce project with vue and vuex. Thanks for your great contribution
doesnt seem to work in vue + vuetify project. i followed the steps in this video but got "FATAL ERROR: v8::FromJust Maybe value is Nothing." error