vitest
Modern TypeScript testing with Vite-native speed, ESM-first design, and instant HMR feedback.
- Vite-powered test execution delivers 10-100x faster performance than Jest through HMR-based test running and native ES module support
- Built-in TypeScript support requires zero configuration; includes Jest-compatible API for straightforward migration from existing test suites
- Supports React and Vue component testing via Testing Library and Vue Test Utils, with jsdom/happy-dom environment options
- Comprehensive mocking API (vi.mock, vi.spyOn, vi.fn) for modules, methods, and timers; includes snapshot testing and v8-based coverage reporting
- UI mode provides visual test debugging; concurrent test execution and custom matchers enable advanced testing patterns
Vitest - Modern TypeScript Testing
Overview
Vitest is a next-generation test framework powered by Vite, designed for modern TypeScript/JavaScript projects. It provides blazing-fast test execution through HMR-based test running, native ESM support, and first-class TypeScript integration.
Key Features:
- β‘ Vite-native: Instant HMR-based test execution (10-100x faster than Jest)
- π― TypeScript-first: Built-in TypeScript support, no configuration needed
- π ESM-native: Native ES modules, async/await, top-level await
- π§ͺ Jest-compatible: Compatible API for easy migration
- πΈ Snapshot testing: Built-in snapshot support
- π¨ Component testing: React Testing Library, Vue Test Utils integration
- π Coverage: Built-in v8/c8 coverage (faster than Istanbul)
- π UI mode: Beautiful web UI for test debugging
Installation:
npm install -D vitest
More from bobmatnyc/claude-mpm-skills
drizzle-orm
Type-safe SQL ORM for TypeScript with zero runtime overhead
4.3Kplaywright-e2e-testing
Playwright modern end-to-end testing framework with cross-browser automation, auto-wait, and built-in test runner
2.7Kpydantic
Python data validation using type hints and runtime type checking with Pydantic v2's Rust-powered core for high-performance validation in FastAPI, Django, and configuration management.
2.2Ktailwind-css
Tailwind CSS utility-first framework for rapid UI development with responsive design and dark mode
1.2Ktrpc-type-safety
tRPC end-to-end type-safe APIs for TypeScript with React Query integration and full-stack type safety
1.1Kpytest
pytest - Python's most powerful testing framework with fixtures, parametrization, plugins, and framework integration for FastAPI, Django, Flask
899