What Is Vitest? - What is Web Development?

preview_player
Показать описание
Becomes a Level Up Pro

Рекомендации по теме
Комментарии
Автор

Nice overview! Regarding snapshot tests: They're kind of a middle ground between a unit and integration test.

You render your component (kind of like an integration test with Puppeteer or similar) and once you've made changes you as a dev can easily see what real world DOM changes your code change corresponds to.

I call it a "poor man's integration test" because it's much easier to set up than an actual integration test.

stasoline
Автор

🧡Vitest is here to save the day. Would love to see a course on LUTs covering this.

fpigeonjr
Автор

Great video as always, Scott. Been using Jest for a while and it's been feeling a bit ill-suited for modernJS projects. So glad I found this.

alexgochenour
Автор

Been using it since 0.2 and it does wonders. A gift from the lord!

shawnlee
Автор

Hey Scott, do you thing is now “safe” to use on production? We will start writing unit tests for a new project, based on your experience with vitest, would you recommend it!? Does it also works fine with react testing library?

tziortziskyprianou
Автор

Nice one, going to do some test on a sveltekit project

Автор

Anthony's cat is the main contributor to Vitest.

stasoline
Автор

is there like a reason that people still use jest snapshot

arnolddevmode
Автор

That Rust-like inline testing thing is more than a bit "if-y"...

Wzymedia