TECHNOLOGY INDEX / REFERENCETESTING / TYPESCRIPT / VITETEST FRAMEWORK
REFERENCE / VITEST
Vitest
Vitest is a Vite-powered test framework for JavaScript and TypeScript projects, with familiar assertions, mocking, snapshots and coverage support.
TEST WITH
THE SAME PIPELINE.
It lets application logic run through the same transformation and module pipeline used during Vite development and builds.
THE CORE
IDEAS.
- 01
VITE NATIVE
Reuse Vite configuration, transforms, aliases and module resolution while tests run.
- 02
ASSERTIONS
Describe expected behavior with test cases and readable expect-style checks.
- 03
FAST FEEDBACK
Run a focused test suite once or watch related modules as source files change.
KEEP EXPLORING / 03OFFICIAL