How to use Vitest with Jest-DOM and React Testing Library
In this next Code With Me series, I’ll be experimenting with the world of Test Driven Development.
Before we get started, we need to set up our environment for testing. I have decided to use Vitest, since I am an avid user of Vite. I don’t want to use Create-React-App even though the testing is ready to go. I find CRA bloated and slow, but I still want to use the awesome tools provided by React Testing Library and Jest-dom.
In this video, we walk through the steps required to set up Vitest with JSDOM, React Testing Library and Jest-DOM so we can test our React components.
Vite:
Vitest:
Vitest Example Library:
Vitest React Testing Lib Example:
1 view
409
122
1 month ago 00:05:17 1
The Ultimate Email Extractor in 2024: YellowPages Scraper 🌎
1 month ago 00:03:55 1
Pokemon GO Joystick, Teleport, Auto Walk - How to Get Pokemon GO Spoofer iOS & Android 2024 FREE
1 month ago 00:12:05 1
ZenBusiness Review 2024: What Makes It Stand Out?
1 month ago 00:04:14 1
Paramore: Decode [OFFICIAL VIDEO]
1 month ago 02:01:18 1
Half-Life 2: 20th Anniversary Documentary
1 month ago 00:36:24 2
Best of the Worst Trivia!
1 month ago 00:03:07 1
Delta Executor iOS iPhone Android NO KEY - Roblox Script Executor Mobile NEW UPDATE 2024
1 month ago 00:03:04 1
Bach, Organ Sonata No. 4 in E minor (BWV 528) 3. Un poco Allegro.
1 month ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
1 month ago 00:03:04 1
Arena Of Valor Hack - How to Get Unlimited Vouchers! iOS Android