[KongchangAI]
ProductVite

Vitest

Vitest 是一个基于 Vite 构建工具的现代前端单元测试框架,专为 JavaScript 和 TypeScript 项目设计。它与 Vite 的配置和插件体系深度集成,支持原生 ES 模块,提供快速的测试执行速度。Vitest 兼容 Jest 的 API 语法,支持组件测试、快照测试及代码覆盖率统计,并内置对多种浏览器模拟环境(如 jsdom、Happy DOM)的支持。

Timeline (last 90 days)

Oct 18

SoloBooks AI's test suite runs on Vitest, with all 17 tests passing, covering minor-unit arithmetic, document security, schema validation, duplicate detection, invoice status transitions, and real Ollama connectivity.

Unverified50%
Oct 18

This PreToolUse hook comes with 52 Vitest cases (39 that should block, 12 that should allow, plus the current-branch check).

Unverified50%
Oct 17

Vitest 5 provides the `--repeats <number>` argument to repeat each test a specified number of times, and `--sequence.shuffle` together with `--sequence.seed` to give a seeded order.

Unverified50%
Oct 17

In Vitest's sequence configuration the seed defaults to `Date.now()`, but the documentation does not say that Vitest prints the seed.

Unverified50%
Oct 13

Automated release patterns such as Changesets or semantic-release have been validated and used by mainstream open source projects such as Vite, Vitest, and Turborepo.

Unverified50%

All Facts (6)

Source Articles