Vitest 下一代基于 Vite 的测试框架
Vitest is a blazing-fast unit testing framework powered by Vite. It provides native ESM support, TypeScript out of the box, and a Jest-compatible API for seamless migration of existing test suites.
Installation
Use the upstream install or setup path that matches your environment:
- $ npx vitest
Requirements and caveats from upstream:
- Vitest requires Vite >=v6.4.0 and Node >=v22.12.0
Basic usage or getting-started notes:
- <a href="https://vitest.dev">Documentation</a> | <a href="https://vitest.dev/guide/">Getting Started</a> | <a href="https://vitest.dev/guide/#examples">Examples</a> | <a href="https://vitest.dev/guide/why">Why Vitest?...
- Run your tests in the browser natively
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/vitest-dev/vitest/HEAD/README.md