Vitest

网站信息
站名Vitest
网址vitest.dev
地区国外
语言英语
更新时间2026-11-10
网站简介

Vitest is a test runner designed around the Vite build tool. Because it reuses the same configuration, plugins and module transforms as the application under test, tests run against code that behaves like production code, and the same setup works for TypeScript, JSX, Vue, React and plain JavaScript packages without a separate bundling pipeline.

The site documents getting started, the test and expect APIs, describe and it blocks, mocking of modules, timers and functions, snapshots, coverage providers, filtering and watch mode, workspace and projects configuration, browser mode, and the command line interface, along with a comparison guide for teams migrating from Jest.

It suits frontend teams already using Vite, library authors who need fast feedback on many small modules, maintainers migrating an existing Jest suite, and continuous integration pipelines that benefit from parallel execution, caching and a very short cold start on each run.

Compared with Jest it usually needs far less transform configuration in Vite projects and starts noticeably faster, though some ecosystem plugins and older mocking patterns may require adjustment; compared with a bare Node test runner it adds a richer assertion library, watch mode and integrated coverage reporting.

Reuse the Vite config instead of duplicating transform rules, prefer explicit cleanup between tests to avoid shared state, enable coverage only where it is needed for speed, and check the migration guide before assuming every Jest matcher and mock behaves identically.

相关查询
收录 - 百度 - 搜狗 - 360 - 必应 - 谷歌
搜索 - 百度 - 搜狗 - 360 - 必应 - 谷歌
最新收录
Siemens
塔城地区行政公署
和田地区行政公署
钦州市人民政府
梧州市人民政府
蚌埠市人民政府
滁州市人民政府
朔州市人民政府
WIRED
实用网站
飞翔下载
多多软件站
开心电玩
酷站导航
篱笆好文学
‌中国扫黄打非网‌
搜了网
东坡下载
Convertio
随机推荐
亚洲明星网
乌兰察布市人民政府
中国传媒大学
武威市人民政府
蚂蚁短租
斗鱼直播
Kubernetes
中国金币网
GnuPG
特别提示
本网页并非Vitest官网,页面内容是由酷站导航编录于互联网,只作展示之用;酷站导航与Vitest无任何关系;如果有与之相关业务事宜,请访问Vitest网站获取联系方式。
本页地址
https://m.torv.cn/sites/1831.html

407106872@qq.com

Copyright © 2026 Torv.cn All Rights Reserved.