-
-
Notifications
You must be signed in to change notification settings - Fork 90
chore: sync docs from vitest @ fec55796 #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Upstream: vitest-dev/vitest@fec5579 Initial sync Changes from upstream: - New files: 277 - Modified files: 0 - Deleted files: 0
✅ Deploy Preview for cn-vitest ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR synchronizes documentation from the upstream Vitest repository (commit fec55796). It is an automated sync that adds 277 new documentation files covering Vitest's configuration options, API references, blog posts, and browser mode features.
Key Changes:
- Adds comprehensive configuration documentation for all Vitest options
- Adds API documentation for testing, mocking, and browser mode
- Adds blog posts announcing Vitest 3.0, 3.2, and 4.0
- Adds Vue components for documentation UI elements
Reviewed changes
Copilot reviewed 99 out of 213 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
config/*.md |
Configuration option documentation files (e.g., include.md, exclude.md, globals.md) |
api/*.md |
API reference documentation for test methods, mocks, and matchers |
api/browser/*.md |
Browser mode API documentation |
blog/*.md |
Blog post announcements for Vitest releases |
.vitepress/components/*.vue |
UI components for documentation site |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| function mock( | ||
| path: string, | ||
| factory?: MockOptions | MockFactory<unknown> | ||
| ): void |
Copilot
AI
Dec 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The function signature formatting change improves readability, but the documentation should clarify that this is a TypeScript overload and both signatures are valid.
🤖 自动同步
此 PR 由自动化脚本生成,用于同步上游 vitest 仓库的 docs 目录。
📌 同步信息
fec55796📊 变更统计
➕ 新增文件 (需要翻译)
.vitepress/blog.data.ts.vitepress/components.d.ts.vitepress/components/Advanced.vue.vitepress/components/ArrowDown.vue.vitepress/components/BlogIndex.vue.vitepress/components/Box.vue.vitepress/components/CRoot.vue.vitepress/components/Contributors.vue.vitepress/components/CourseLink.vue.vitepress/components/Deprecated.vue.vitepress/components/Experimental.vue.vitepress/components/FeaturesList.vue.vitepress/components/HomePage.vue.vitepress/components/ListItem.vue.vitepress/components/Version.vue📝 修改文件 (检查是否需要更新翻译)
无
➖ 删除文件
无
📝 翻译检查清单
.vitepress/blog.data.ts- 添加翻译.vitepress/components.d.ts- 添加翻译.vitepress/components/Advanced.vue- 添加翻译.vitepress/components/ArrowDown.vue- 添加翻译.vitepress/components/BlogIndex.vue- 添加翻译.vitepress/components/Box.vue- 添加翻译.vitepress/components/CRoot.vue- 添加翻译.vitepress/components/Contributors.vue- 添加翻译.vitepress/components/CourseLink.vue- 添加翻译.vitepress/components/Deprecated.vue- 添加翻译... 检查其他文件