Vitest
Vitest 是一个基于 Vite 构建工具的现代前端单元测试框架,专为 JavaScript 和 TypeScript 项目设计。它与 Vite 的配置和插件体系深度集成,支持原生 ES 模块,提供快速的测试执行速度。Vitest 兼容 Jest 的 API 语法,支持组件测试、快照测试及代码覆盖率统计,并内置对多种浏览器模拟环境(如 jsdom、Happy DOM)的支持。
Timeline (last 90 days)
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.
This PreToolUse hook comes with 52 Vitest cases (39 that should block, 12 that should allow, plus the current-branch check).
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.
In Vitest's sequence configuration the seed defaults to `Date.now()`, but the documentation does not say that Vitest prints the seed.
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.
All Facts (6)
Happy DOM是一个用TypeScript实现的无头浏览器环境,已被Vitest、Jest、Bun等测试框架作为默认或可选的DOM环境
90%UnverifiedSoloBooks 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.
50%UnverifiedThis PreToolUse hook comes with 52 Vitest cases (39 that should block, 12 that should allow, plus the current-branch check).
50%UnverifiedVitest 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.
50%UnverifiedIn Vitest's sequence configuration the seed defaults to `Date.now()`, but the documentation does not say that Vitest prints the seed.
50%UnverifiedAutomated release patterns such as Changesets or semantic-release have been validated and used by mainstream open source projects such as Vite, Vitest, and Turborepo.
50%