Tag: vitest

5 articles

· testing / vitest

The test pyramid is dead — what replaced it

The 70/20/10 ratio nobody official ever endorsed, how Vitest browser mode and Playwright component testing dissolved the tier boundaries, and a concrete testing strategy for 2026.

· testing / vitest

How to configure Vitest in a Turborepo monorepo

Vitest 4.x dropped the workspace option — it is projects now. This guide covers two approaches (per-package caching and Vitest Projects root), shared config, turbo.json wiring, and coverage aggregation.

· vitest / bun

Vitest vs Bun Test — Speed vs Ecosystem

Bun's test runner boots 11× faster than Vitest. But if your suite uses __mocks__ directories, Istanbul coverage, or @vitest/ui, you'll lose more than you gain. Here's when to switch and when to stay.

· testing / vitest

How to Migrate from Jest to Vitest: Step-by-Step Guide

Vitest runs 28× faster than Jest in watch mode. This guide covers the full migration: install, configure globals, handle config files, and fix six gotchas.

· testing / vitest

Vitest vs Jest 2026: The Test Runner That Already Won

Vitest wins in 2026 for Vite and TypeScript projects — 5.6× faster cold starts, 28× faster watch mode, zero TypeScript config. When to switch and when to stay.