Advanced Vitest Patterns

Live Workshops
with Artem ZakharchenkoArtem Zakharchenko


You know this feeling when you cannot imagine your work without a certain tool? When it has become so indispensable and integral in your daily tasks it just feels right. When you’ve reached that level of comfort and feel empowered to solve any task, big or small, simple or soul-crushingly complex.

I’m sure you have a list of tools that make you feel this way. It’s time you added Vitest to that list.

The Advanced Vitest Patterns workshop is exactly what it sounds. A curated collection of practical, powerful, and often little-known techniques that help you do more with less. That make you say “Wait, Vitest can do that?”

You are invited to join me for a 2-day workshop to explore what else your testing framework can do and, at the end of it, get one more tool in your pocket.

Who This Workshop Is For

  • Developers who want to do more in their tests but aren’t sure how.
  • Developers who crave to go beyond the basics and get really good at their testing framework.
  • Developers who want to get a deeper understanding of what is possible in Vitest and turn it into a Swiss knife to help them test complex code.

What You’ll Learn

This workshop covers an expanse of different techniques to apply in Vitest and how they can help you write better tests day-to-day. Do not expect the basics. I put “advanced” in the title for a good reason.

Here’s what you will do:

  • Explore the optimal Vitest setup for great developer experience and faster feedback loop—from having multiple workspaces to running tests right from your IDE.
  • Design custom test environments to tailor to the most intricate of use cases.
  • Create custom type-safe matchers (symmetric and asymmetric) to make your tests expressive, clean, and powerful.
  • Define custom fixtures to encapsulate and reuse common actions.
  • Discover the strategies for dealing with slow tests—from profiling to making the most out of concurrency, test isolation, and sharding to make tests fast again.
  • And countless more tips and patterns that will make you a Vitest superuser.

The entirety of the workshop features real-world examples I took from my own years of automated testing. Everything is written in TypeScript. Everything is there to help you make the most out of Vitest.

Required Experience

  • Prior experience with testing frameworks like Jest or Vitest is required.
  • Basic level of TypeScript is recommended since all the exercises are written in TypeScript and you would have to write a type or two yourself.
  • Visual Studio Code or Visual Studio Code-based editor is recommended as a few exercises feature extensions for that editor. The majority of the topics, however, is editor-agnostic.

Share this Live Workshop

Artem Zakharchenko
Hosted by Artem Zakharchenko

Author @ApiMocking. Instructor @eggheadio. All things testing.