Why Vitest Is Better Than Jest

  Рет қаралды 126,995

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Vitest is a simple testing library built on top of Vite which takes everything I love about Jest and brings it to the modern age of JavaScript. Everyone that has worked with Jest knows how much of a pain it is to work with ES modules, but Vitest makes it trivial. Vitest also adds many additional features and quality of life changes that make it better than Jest in my opinion.
📚 Materials/References:
Jest Tutorial Video: • Introduction To Testin...
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:44 - Create a vite project
01:33 - Basic vitest tests
05:51 - Test coverage reports
08:16 - Inline testing
#Vitest #WDS #Jest

Пікірлер: 160
@nikfp
@nikfp 2 жыл бұрын
I'm seeing a lot of frustration from folks that are using Jest and don't see the benefit of converting to Vitest, so I thought I would share my experience when switching over. I'm working on a back-end Node API that exposes a Graphql endpoint, and also a Sveltekit project. I have used Vitest in both. - When trying to work with Jest (and also Mocha) I experienced huge hurdles in working with ESM and typescript. The "solution" was to maintain a different tsconfig for testing as the production config, which means they could easily migrate away if I wasn't careful. Also modules in testing were compiling to commonjs and for production were compiling to ESM. - My first attempt to fix this was to use Uvu and TSM together, and I was actually pretty impressed with it. However it is minimal, so any mocking or anything else I was doing needed to be done by hand. This was also an issue for front end testing in Sveltekit. Rather than reinvent the wheel, I gave Vitest a shot and it works great. I was able to get rid of the tsconfig.testing.json file entirely, and still make use of the larger Jest-like API offered by Vitest - Initial test run performance of Vitest vs Mocha (which was similar to Jest when tested previously) were about the same. Uvu did actually go a bit faster right out of the gate, but not really enough to notice. (half a second or less difference) HOWEVER once the test runner was running in watch mode, Vitest was orders of magnitude faster than Jest and Mocha and about twice as fast as Uvu. I think this has to do with the Hot Module Reloading in Vite. - When working in Sveltekit, Vitest just worked. Since Vitest uses the same Vite config, this wasn't all that surprising. Overall I've been happy with Vitest and don't see myself going back to Jest any time soon.
@user-mf8fl9sy8j
@user-mf8fl9sy8j 3 ай бұрын
Jest has an issue to solve ESM for 4 years, that is 1 reason I never use Jest anymore, but Vitest for frontend and the native Node test runner for backend and packages. If you want test ESM with Jest, it compiles it indeed to commonjs, but that is not a real world test for me, because I use ESM in production in the backend. So Jest was for me not useful to test if it works, because you test something different than what we run. if you build something with a build step, like most frontend applications, it is a different situation. But be careful, that the test should build the same as you do in production. But in the backend and packages I never add a build step anymore, so everything is much more simple, and also a lot faster. You can just test the code without waiting on the build.
@marcusthelin9991
@marcusthelin9991 Ай бұрын
I'm back in the Node.js world again after some time working in Golang and I just got reminded how much I hate Jest... Constant import errors and super terrible TS support
@enyakstew7107
@enyakstew7107 Жыл бұрын
I have been struggling for hours trying to setup a react app created with vite and jest until I came across this video. Thank you for this !
@j0hannes5
@j0hannes5 2 жыл бұрын
I'd be interested in a more general video about testing libraries, their features and their tradeoffs. And setups you can have, like Webpack + Mocha+Chai + React Testing Library.
@johnodonnell5342
@johnodonnell5342 2 жыл бұрын
I was wondering how to keep test code out of the bundler. Thanks for describing the config that does that!
@StephenMoreira
@StephenMoreira 2 жыл бұрын
Will check this out, Jest is my #1 pain point in my project.
@JoaoPaulo-ox6pr
@JoaoPaulo-ox6pr 10 ай бұрын
I have lots of nightmares with configuration files for everything, whether it is Eslint, Tsconfig, BabelRC, webpack, there's pratically no material outside the docs about them, i was having so many issues trying to config jest for react/typescript vite builded projects. and then i found this video, you're a lifesaver.
@010timeboy27
@010timeboy27 9 ай бұрын
I feel your pain
@ass_awper
@ass_awper 2 жыл бұрын
Amazing content bro love it keep it up
@wahyufebrianto5938
@wahyufebrianto5938 2 жыл бұрын
That's Awesome... Thank you for the excellent content❤
@steveh7922
@steveh7922 2 жыл бұрын
Just tried it out on the online emulator. So easy to mock an imported ES6 module, I'm switching. Thanks Kyle!
@cocohead2478
@cocohead2478 2 жыл бұрын
that's good to hear! I was just wondering if mocking with vitest was easy.
@victorlongon
@victorlongon 2 жыл бұрын
Of course you can have your opinion but why do you think mocking with jest is hard/complicated?
@steveh7922
@steveh7922 2 жыл бұрын
Aaaand I've now switched back to Cypress
@jaideepshekhar4621
@jaideepshekhar4621 Жыл бұрын
@@steveh7922 What happened? XD
@kamehameha38
@kamehameha38 Жыл бұрын
@@steveh7922 Lmao, what happened?
@tamlselvan9072
@tamlselvan9072 2 жыл бұрын
Buddy you are amazing, keep rocking 👍
@SithLordBishop
@SithLordBishop Жыл бұрын
Love to see a follow up on how mocks work.
@kamehameha38
@kamehameha38 Жыл бұрын
Currently stuck on how to mock using their test runner. Hope he does an update
@gritsienkooleg3447
@gritsienkooleg3447 Жыл бұрын
Thank you so much) Very helpful!
@bryson2662
@bryson2662 2 жыл бұрын
Damn, you convinced me. I'm switching. I like in line tests.
@warrencedro6832
@warrencedro6832 2 жыл бұрын
This is great, could you make a video about Turborepo implementing Vite and Vitetest?
@kirilltalalykin919
@kirilltalalykin919 2 жыл бұрын
im confused about the part at 3:18, where you say import/export in test file is not available in jest. What do you mean by that. I never experienced any problem with jest test files and imports
@AlessioMichelini
@AlessioMichelini 2 жыл бұрын
I was about to ask the same, I use ESModules with Jest all the time, never had a problem...
@milon27
@milon27 Жыл бұрын
hi in one folder all of my test file are running parallel , so for testing database conflict data and failed many test. but when I run one file at a time all test are passing. how are configure vitest in a way so that it only run one testfile at a time?
@codehan
@codehan 2 жыл бұрын
What‘s your opinion to use vitest within a react project? What about snapshot tests? Is it possible with vitest? I don‘t really see a benfit to be honest. No configs is good but does it really work in larger projects?
@locim9201
@locim9201 2 жыл бұрын
Wanna knows these too
@mathnewph
@mathnewph 2 жыл бұрын
Don't using react but After a short look at the docs that looked good for react and i'm already using it in a large projet and it juste work great
@erics2133
@erics2133 2 жыл бұрын
vitest does jest-compatible snapshot testing, as I understand it, though I've never tried to see how compatible it is.
@igorswies5913
@igorswies5913 2 жыл бұрын
I would just test the UI by looking at it, separated from logic (with mock data) and test functionality, but I don't do automatic testing on my project yet tho
@rickyalmeida
@rickyalmeida Жыл бұрын
@@mathnewph are you using react testing library? is it possible to extend vitest expect with jest-dom matchers?
@marcosadriano05
@marcosadriano05 2 жыл бұрын
Vite and Vitest save much time, another solution is Jest with SWC instead Babel, its runs really good too.
@AbhishekMishra-fr7po
@AbhishekMishra-fr7po Жыл бұрын
Hey Kyle, please make a similar video for end to end testing using react native expo+ detox, it would be of great help
@michamazurkiewicz80
@michamazurkiewicz80 2 жыл бұрын
Man you are such a talented guy. You should prepare something more than just a sum function. For which test looks the same with jest. Boundled files? You should not even keep the test code together with the src to not increase package size. So that’s useless. I would like to see how can I mock with it different async calls, how to test api etc. very bad. Don’t be lazy.
@WilChow
@WilChow 2 жыл бұрын
Another reason why I need to try out a project with Vite
@risitas5874
@risitas5874 2 жыл бұрын
The main struggle my team has with Jest is the memory usage. We have 3500 tests and when we run them all, the process slowly eats up more and more ram until it reaches 20-25 GB. If you don't have enough ram, the OS starts to use the harddrive and the tests start to timeout because of the slow speed. Vitest has not solved this issue. Last time I tried it, the process just hung indefinitely.
@LordSuperAstro
@LordSuperAstro 2 жыл бұрын
sounds like something is wrong with your tests
@vickylance
@vickylance 2 жыл бұрын
@@LordSuperAstro It is not. jest is simply utterly slow to run tests. We have over 6K tests and it just takes 2 hours on dev machine to run all test cases and most of the time it fails due to timeouts
@risitas5874
@risitas5874 2 жыл бұрын
@@LordSuperAstro We spent weeks trying to find a cause and we never did. As @Vickylance said, it's a problem with jest.
@parlor3115
@parlor3115 2 жыл бұрын
@@vickylance If what you're testing isn't already CPU intensive then it's maybe a GC problem. Maybe try to be more conservative with allocations. Not saying it's not a problem with the framework but maybe you can circumvent it with good programming.
@vickylance
@vickylance 2 жыл бұрын
@@parlor3115 the problem is react takes a lot of time to render per test in jest, and 250 frontend devs writing code tests can't be checked for maximum efficiency every time. Even when I just run one test it takes a lot of time to even start the test.
@kesavanarayanaanaparthi6428
@kesavanarayanaanaparthi6428 4 ай бұрын
How to configure MUI testing in this project and show me how to run single test. Good content. Love your presentation.
@jake8217
@jake8217 Жыл бұрын
I saw this video and thought it would be cool to use it in node. But it has not been smooth sailing. Can you do a video for vitest on nodejs?
@joshuasmith2814
@joshuasmith2814 Жыл бұрын
I never had an issue using import in jest... so it is hard to argue for that to be the reason to switch. I'd be more interested to see how to test UI components with vitest.
@harsinghsekhon5935
@harsinghsekhon5935 Ай бұрын
How do you create your react projects? Using vite ? or create-react-app? Because I just had a lot of problems with import.meta statements in vite/react projects while working with jest.
@skyzane2735
@skyzane2735 2 ай бұрын
Do you have in depth explanation and examples about diff of toBe and toEqual?
@arzievsultan
@arzievsultan 2 жыл бұрын
Why is vite including tests in the bundle if it was not exported? How does work tree shaking in vite? Not based on exports & imports?
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
It only includes tests that are inline, meaning the ones you write in your main .js or .ts files. Vite doesn't include the ones from test files as far as I know.
@abuzain859
@abuzain859 5 ай бұрын
Hey Kyle! 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) )
@vamshiart
@vamshiart Жыл бұрын
vitest has been very slow in CI pipeline, supposedly 2-3 times slower than jest. I am surprised no one talking about that. We moved to vitest, saw how slow it is and moved back to jest.
@SithLordBishop
@SithLordBishop Жыл бұрын
Jest drives me mad. Ill have to play with this! Love Vite!
@justdoeverything8883
@justdoeverything8883 Жыл бұрын
Vitest is sooooo fast! I'm loving it!
@A_Saban
@A_Saban 2 жыл бұрын
interesting ill give it a go
@shupesmerga4694
@shupesmerga4694 Жыл бұрын
Where do I configure vitest for In-source setup on vanilla JS where do i put "types": "vitest/importMeta"
@fooked1
@fooked1 Жыл бұрын
What import / export issues in Jest?
@lovelyboy8056
@lovelyboy8056 11 ай бұрын
Jesus so fast and helpful information ❤
@_flavio_silva
@_flavio_silva Жыл бұрын
Hey nice video, help a lot. Who to have the `describe`, `expect`, `test`/`it`, etc... global? 😅:)
@umairulislam9048
@umairulislam9048 5 ай бұрын
Well explained
@learn029
@learn029 2 жыл бұрын
I can't able to install create react app with yarn which step of command i have to follow
@mon_codes
@mon_codes 2 жыл бұрын
Im hoping that there will be a Vue content from you. 😊
@MuhammadAhmedAshraf
@MuhammadAhmedAshraf 2 жыл бұрын
Am i right that apis are methods properties from a library or framework and URLS like rest
@nelsonmendezz_
@nelsonmendezz_ 2 жыл бұрын
Anthony Fu the best 🚀
@legends_assemble4938
@legends_assemble4938 7 ай бұрын
Thanks!
@WebDevSimplified
@WebDevSimplified 6 ай бұрын
Welcome!
@yokiyu799
@yokiyu799 2 жыл бұрын
I think most of the products from vue team are opinionated, that's why vite or vitest seems less configuration files and easier to setup with, but the tradeoff is also exists behind the scene. From my experience, if you want to setup a well known structure that vite provides you then choose vite, but if you want to setup piece by piece and to have the most extendability then choose webpack rollup cra jest stuff like that. BTW, I don't think a little compile speed gain is worth changing to an opinionated architecture.
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
You got a point but the less opinionated a framework become the more ways the code can branch into multiple paradigm that if left unchecked, will become more harder to maintain in the future. This is why most frameworks tends to favor convention over configuration. But then a good framework always adopts good convention or best practices by the community while also leaving spaces for configuration.
@yokiyu799
@yokiyu799 2 жыл бұрын
@@daleryanaldover6545 TIL! Can't agree with you more, especially “a good framework always adopts good convention or best practices by the community while also leaving spaces for configuration”.
@VladBurlutsky
@VladBurlutsky 2 жыл бұрын
Is it?My first impression in March that it wasn’t
@eyyMinda
@eyyMinda Жыл бұрын
I'm getting an error "No test suite found in file .../vite.config.ts" Can't seem to find a solution :(
@RoKi-bo1mf
@RoKi-bo1mf 2 жыл бұрын
Can I use vitest in the existing webpack project (without vite)?
@daleryanaldover6545
@daleryanaldover6545 2 жыл бұрын
I don't think vitest will add support to webpack, it would be like giving people more reasons to just stay using webpack.
@RoKi-bo1mf
@RoKi-bo1mf 2 жыл бұрын
@@daleryanaldover6545 ok thanks!
@arshadsiddiqui9071
@arshadsiddiqui9071 10 ай бұрын
Can you show us this with a normally setup typescript project. I keep getting errors. When using Vite it is pretty seemless though. Edit: Wow it just fixed itself after restarting the IDE. A developer problem needs developer solutions lol.
@wfl-junior
@wfl-junior 2 жыл бұрын
that's awesome
@hikari1690
@hikari1690 2 жыл бұрын
Ah something new and old... I've been web dev-ing for almost a year now and never used jest, or maybe have but I have no idea when. Or what it even does
@sendo_19
@sendo_19 2 жыл бұрын
Vitest works in nestjs?
@Renoistic
@Renoistic 2 жыл бұрын
Personally I'm really happy with Jest + React Testing Library but I'll give this a shot. I don't really see a benefit with inline testing though. If you have several small files I'd rather put the test files in a __tests__ folder.
@Cowkill
@Cowkill 2 жыл бұрын
Hi Renoistic ! Do you have any source or good tutorial to learn Jest and React Testing Library ? I'm trying to learn it but it's a pain to find any meaningful source, and the doc is a mess. Thanks !
@ShivamMishra-mn6cs
@ShivamMishra-mn6cs 2 жыл бұрын
Udemy
@igorswies5913
@igorswies5913 2 жыл бұрын
the benefit is that they are easily accessible, tests are meant to be partly a form of documentation
@rickyalmeida
@rickyalmeida Жыл бұрын
@@Cowkill try kent c dodds courses, they've helped me a lot
@wezter96
@wezter96 2 жыл бұрын
Does Vitest work with React Native?
@webdeveloper2769
@webdeveloper2769 7 ай бұрын
Can you do it with react components
@vivekkaushik9508
@vivekkaushik9508 Жыл бұрын
What's the benefit of using inline-test?
@gauravdobriyal1337
@gauravdobriyal1337 2 жыл бұрын
Please make a video on dataset in javascript I am really confused.
@mr.random8447
@mr.random8447 Жыл бұрын
Is vitest faster than jest with SWC (Rust)?
@Woeden
@Woeden 2 жыл бұрын
That gif... lol!!
@johnm8358
@johnm8358 2 жыл бұрын
How hard to move from jest to vitetest
@inasuma8180
@inasuma8180 Жыл бұрын
Jest is very simple already. I’m surprised there is a concern that it’s too complicated. Using babel-jest you can compile down your test code which automatically gives support for modern JS including import/export.
@alext5497
@alext5497 Жыл бұрын
doesn't this cram test code into the bundler
@mocnyfullpucha500ml
@mocnyfullpucha500ml 2 жыл бұрын
scarxlus when u became web dev??
@cmdv42
@cmdv42 Жыл бұрын
💯
@benjaminvenezia1944
@benjaminvenezia1944 Жыл бұрын
Hello, whats about vitest + react native? Ty
@benjaminvenezia1944
@benjaminvenezia1944 Жыл бұрын
After verification seems Vitest is not supported.
@mphy
@mphy Жыл бұрын
awesome
@huizhong3713
@huizhong3713 Жыл бұрын
amazing
@tenebrae1191
@tenebrae1191 11 ай бұрын
👏
@7heMech
@7heMech 2 жыл бұрын
cool
@tjay5644
@tjay5644 Жыл бұрын
Vite created by vue framework creator 🔥😍
@AlanDeveloperz
@AlanDeveloperz 2 ай бұрын
Real world question: How Vitest goes with Mock/Spy and these things for "advanced"
@nicolindenau3349
@nicolindenau3349 Жыл бұрын
Why is Typescript not complaining when you call sum without any arguments? The function should only accept an array with numbers. What am I missing?
@jackwright517
@jackwright517 Жыл бұрын
strictNullChecks in the tsconfig is false by default. Setting it to true should make TS highlight that as an issue 😁👍
@shawnlee6775
@shawnlee6775 2 жыл бұрын
Been using it since 0.1 Never going back to Jest.
@user-vn3vd6wq7n
@user-vn3vd6wq7n 2 жыл бұрын
Nice hair style
@pranupranav5563
@pranupranav5563 3 ай бұрын
Import in jest is supported.
@ElrondMcBong86
@ElrondMcBong86 11 күн бұрын
Whats the best approach to add vitest into an EXCISTING project?
@codernerd7076
@codernerd7076 2 жыл бұрын
Jest is awful happy to see replacements!
@jsonkody
@jsonkody 7 ай бұрын
11:32 .. easy way of fix that is go after build to production code and erase the test code from the compiled code-soup ._.
@karthikm.1804
@karthikm.1804 2 жыл бұрын
Pathfinder visualizer project with Vanilla javascript
@Twi1ightFr0st
@Twi1ightFr0st 2 жыл бұрын
does anyone here not use any testing library, but use only console.assert with conditionals that run in dev but not in prod? seems lot simpler
@Elduque40
@Elduque40 2 жыл бұрын
But axios isn’t version 1 yet. It hasn’t been for years
@dixienormus8097
@dixienormus8097 Жыл бұрын
I'd be interested to see how Vitest handles error reporting. Jasmine / Karma is fucking horrible with presenting errors in a comprehensive format. You can spend hours trying to find out what's wrong. Jest has been slightly better over the last year. Wonder how good this is when you're working with subscriptions, fake async zones, state etc.
@TheSysmat
@TheSysmat 2 жыл бұрын
when adding vitest my eslint fail,
@quintencabo
@quintencabo 2 жыл бұрын
What about cypress
@Zeioth
@Zeioth 6 ай бұрын
I don't doubt there might be some benefit on using vitest, but I doubt it compensates the inflated cost of finding a vitest developer over a jest developer, or having to train people on it. After 10 years trying everything, I've settled with react + express/django + jest because it does what it is supposed to, and they don't break stuff. And those who had to migrate from angularjs to angular know what I'm speaking about.
@codedjango
@codedjango 2 жыл бұрын
Does that mean that it doesn't work for plain javascript? only typescript?
@abdulshakur2776
@abdulshakur2776 2 жыл бұрын
It just shows that it's also supported in typescript.
@sunpoke5317
@sunpoke5317 2 жыл бұрын
Since TS is a superset of JS, everything on JS will work on TS. Also, you can simply choose JS during configuration.
@victorlongon
@victorlongon 2 жыл бұрын
If it is quicker than jest AND integrate will in an existing project not using vite it might be worth a try, otherwise no. Does someone here using it in a real world project that does not use vite and can compare with jest?
@shupesmerga4694
@shupesmerga4694 Жыл бұрын
I'm a simple man, if it's new I install it
@baka_baca
@baka_baca 2 жыл бұрын
The main audience here seems to be developers of frontend apps using Vite. I get the appeal of not wanting to double-configure some things, it makes makes sense. But I can't find a reason to want to switch otherwise, maybe I need to be using Typescript (which is just overkill for what I'm working on these days). Inline tests look nice with the small simple example, but most functions/modules worth testing can quickly end up having hundreds of lines of testing code; I would not want that mixed up with the module itself. Moreover, I wouldn't want to sometimes do inline tests and sometimes not as that is confusing. Also, it looks and feels super hacky to set up this feature with the "define import.vitest = undefined" stuff. I get why it works, but if the configuration on Vitest is so good, why do I have to do something hacky like this at all for such an obvious use-case? Kind of makes me lose confidence with what else might be hiding in the configs. I'm not convinced to switch, I'd rather deal with the rather minimal jest configuration (Vitest doesn't seem to spare me much work at all) than get another opinionated mess from the Vue team. This feels like the Vue team trying to rope developers in more and more to a Vue ecosystem just for the sake of being in that ecosystem without adding much value. They are a hard working team that has helped push some things in the field forward, but for my preferences, they have also consistently picked poor and confusing abstractions that have caused me more headaches than problems solved, why would I want to switch if I'm not using Vite?
@hikari1690
@hikari1690 2 жыл бұрын
Can the next video be visualizing tigergraph data in vue *hint hint nudge nudge wink wink*
@kshitizshah6685
@kshitizshah6685 Жыл бұрын
Good, but frequently transition on every new tech is bad
@danydany6068
@danydany6068 2 жыл бұрын
not in angular
@qwertt14
@qwertt14 Жыл бұрын
"it's superfast, it took only 2ms" to sum 2 and 2 ;/ At least try summing a couple thousand numbers
@rodbrowning
@rodbrowning 2 жыл бұрын
Unfortunately it's not for mobile users
@alexsherzhukov6747
@alexsherzhukov6747 Жыл бұрын
Video named Why Vitest Is Better Than Jest yet not a single reason to use it besides a single controversial feature
@SeekerofUniverse33
@SeekerofUniverse33 9 ай бұрын
can we use Vitesh with NextJS pls make a video on this and latest unit testing video
@hycalvinc
@hycalvinc Жыл бұрын
Sadly vitest is much slower then jest and this issue is still not solved after a year
@trappedcat3615
@trappedcat3615 2 жыл бұрын
We need an AI-generated test suite that just automates the whole process.
@elgalas
@elgalas 2 жыл бұрын
"Why Vitest is Better than Jest", links to a Jest video, and says the API is built on top of Jest. Catchy titles much?
@avoerman89
@avoerman89 2 жыл бұрын
If vitest is the same API as jest, it doesn't really solve the issue with jest's convoluted mocking system which makes it a pain to spy on default function exports. I get that it's faster, but it doesn't look like the jest killer that we need.
@AlessioMichelini
@AlessioMichelini 2 жыл бұрын
Sorry man, I generally love your videos, but apart from inline testing, which I would generally prefer to avoid, you can do exactly the same as you did with vitest, with just Jest...
@dimitrychi
@dimitrychi 2 жыл бұрын
I absolutely agree
@TiberiusGracchi
@TiberiusGracchi Жыл бұрын
I think the point is that jest is bad
@AlessioMichelini
@AlessioMichelini Жыл бұрын
@@TiberiusGracchi the video does nothing to show that, also if vitest is just an abstraction of Jest, not sure how it can be any faster.
@heroe1486
@heroe1486 Жыл бұрын
I mean the thumbnail speaks for the video, anyway if someone is telling you, without nuance, that the established solution is bad and the new shinny stuff is good based on a hello world example that's probably irrelevant. But that's the JS Community/KZbin's need for new content that demand that kind of stuff.
@ob34915
@ob34915 Жыл бұрын
Yeah they are same but less configuration with vitest
@FatherPhi
@FatherPhi 2 жыл бұрын
My god jest is horrible and ruined my Stripe interview😮‍💨
@syz3981
@syz3981 Жыл бұрын
so, Why Vitest Is Better Than Jest ?????
@heroe1486
@heroe1486 Жыл бұрын
Because it's newer and shiny
Why I Don’t Unit Test
8:25
Theo - t3․gg
Рет қаралды 86 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 450 М.
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 19 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 464 М.
Cute Barbie Gadget 🥰 #gadgets
01:00
FLIP FLOP Hacks
Рет қаралды 31 МЛН
Vitest Simplified
4:55
LearnVue
Рет қаралды 31 М.
Introduction To Testing In JavaScript With Jest
13:57
Web Dev Simplified
Рет қаралды 487 М.
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 257 М.
Introduction to Jest Testing | JavaScript Unit Tests
25:30
Dave Gray
Рет қаралды 27 М.
React Unit Testing Tutorial With React Testing Library and Vitest React
19:12
Monsterlessons Academy
Рет қаралды 9 М.
Why is Everyone Using Vite?
7:34
Awesome
Рет қаралды 73 М.
Learn Vitest and Testing Library In 40 Minutes
40:12
Program With Erik
Рет қаралды 52 М.
Visual Guide to the Modern Frontend Toolchain (Vite)
9:18
Lachlan Miller
Рет қаралды 73 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 69 М.
Dynamic #gadgets for math genius! #maths
00:29
FLIP FLOP Hacks
Рет қаралды 19 МЛН