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.

WHAT IT DOES / 01

TEST WITH
THE SAME PIPELINE.

It lets application logic run through the same transformation and module pipeline used during Vite development and builds.

KEY CONCEPTS / 02

THE CORE
IDEAS.

  1. 01

    VITE NATIVE

    Reuse Vite configuration, transforms, aliases and module resolution while tests run.

  2. 02

    ASSERTIONS

    Describe expected behavior with test cases and readable expect-style checks.

  3. 03

    FAST FEEDBACK

    Run a focused test suite once or watch related modules as source files change.

KEEP EXPLORING / 03

OFFICIAL
RESOURCES.

BACK TO ARCHIVEALL PROJECTS←