Testing
Unit, integration, and E2E tests
Write unit & component tests
Jest
The de facto JavaScript testing framework. Zero-config setup, built-in mocking, snapshot testing, and code coverage. Maintained by Meta, used by virtually every major JS project.
Vitest
Next-generation blazing-fast unit testing framework powered by Vite. Compatible with Jest API, supports ESM natively, and runs tests in parallel with HMR. The modern choice for Vite projects.
Write end-to-end browser tests
Playwright
Microsoft's end-to-end testing framework for web apps. Supports Chromium, Firefox, and WebKit with a single API, auto-waiting, network interception, and visual comparison testing.
Cypress
Developer-friendly E2E and component testing for web apps. Famous for its time-travel debugging, real browser testing, and the best-in-class test runner UI that shows tests executing live.
Run fast tests with Vite
Vitest
Next-generation blazing-fast unit testing framework powered by Vite. Compatible with Jest API, supports ESM natively, and runs tests in parallel with HMR. The modern choice for Vite projects.