百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vitest

> 测试质量
开源

由 Vite 提供支持的下一代测试框架。

16.9K stars0 点赞8 次浏览
访问官网GitHub

工具介绍

由 Vite 提供支持的下一代测试框架。



下一代测试框架,由 Vite 提供支持。



Vitest

下一代测试框架,由 Vite 提供支持。

" target="_blank" rel="noopener noreferrer">

感谢 Get" target="_blank" rel="noopener noreferrer">参与者!

Documentation" target="_blank" rel="noopener noreferrer"> | Getting" target="_blank" rel="noopener noreferrer"> 启动 | Examples" target="_blank" rel="noopener noreferrer"> 发布

| Why" target="_blank" rel="noopener noreferrer"> Vitest?

中文文档" target="_blank" rel="noopener noreferrer">



- [Vite](https://vitejs.dev/) 的配置、转换器、解析器和插件。使用与你的应用程序相同的设置! - [Jest Snapshot](https://jestjs.io/docs/snapshot-testing) - [Chai](https://www.chaijs.com/) 内置用于断言,支持 [Jest expect](https://jestjs.io/docs/expect) 的 API - [智能且即时的监视模式](https://vitest.dev/guide/features.html#watch-mode),就像 HMR 适用于测试! - 通过 [`v8`](https://v8.dev/blog/javascript-code-coverage) 或 [`istanbul`](https://istanbul.js.org/) 提供本地代码覆盖 - 与 Jest 兼容的模拟、替代和间谍 - [JSDOM](https://github.com/jsdom/jsdom) 和 [happy-dom](https://github.com/capricorn86/happy-dom) 用于模拟 DOM 和浏览器 API - [浏览器模式](https://vitest.dev/guide/browser/) 用于在浏览器中运行组件测试 - 组件测试([Vue](https://github.com/vitest-tests/browser-examples/tree/main/examples/vue)、[React](https://github.com/vitest-tests/browser-examples/tree/main/examples/react)、[Svelte](https://github.com/vitest-tests/browser-examples/tree/main/examples/svelte)、[Lit](./examples/lit)、[Marko](https://github.com/marko-js/examples/tree/master/ex))

Issues· 419 开放

查看全部 Issues在 GitHub 打开
  • #11436

    FOSS 漏洞扫描发现依赖项 `convert-source-map` 未维护/已放弃

    enhancement: pending triage更新于 2026年10月1日
  • #957

    依赖关系仪表板

    更新于 2026年10月1日
  • #11433

    覆盖范围: 其路径中含有`(或`['的文件被重新处理为未覆盖,istanbul 可以为未覆盖的文件记录另一个模块的覆盖情况

    pending triage更新于 2026年10月1日
  • #11434

    browser-playwright: 严格模式违规时,失败截图失败,因为存在 2 个 `<body>` 元素

    pending triage更新于 2026年10月1日
  • #8554

    HMR 覆盖层捕获测试点击,无法禁用

    feat: browserpending triage更新于 2026年10月1日
  • #11431

    测试上下文设置期间超时导致所有重试失败

    pending triage更新于 2026年10月1日
  • #11423

    isolate: false: `test.env` 不再在重用的工作中每个文件前重新应用 (从 4.1.11 开始回退)

    更新于 2026年10月1日
  • #9763

    优化 html 报告模块图表数据

    p3-minor-bugfeat: reporters更新于 2026年10月1日
  • #11269

    使 `.vitest` 资产目录可配置

    p2-nice-to-havep2-to-be-discussedfeat: reporters更新于 2026年9月30日
  • #11243

    当测试 iframe 永远不触发 `load` 时,浏览器模式会一直卡在一起

    feat: browserp3-minor-bug更新于 2026年9月30日

> 标签

TypeScripttesttesting-toolsvite

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年10月1日
分类测试质量
定价开源

> 相关工具

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.