Vitest

Vitest is a testing framework built on Vite, with an API close to Jest's. It reuses Vite's configuration, starts fast, handles ESM and TypeScript natively, and suits Vue, React, and other modern front-end projects.

Example

import { test, expect } from 'vitest';
test('addition', () => expect(2 + 3).toBe(5));

Related concepts

The whole glossary