Skip to content

Conversation

@elonehoo
Copy link
Member

@elonehoo elonehoo commented Dec 9, 2025

🤖 自动同步

此 PR 由自动化脚本生成,用于同步上游 vitest 仓库的 docs 目录。

📌 同步信息

项目
源提交 fec55796
上次同步 首次同步
同步时间 2025-12-09T15:15:41.167Z
同步模式 全量同步

📊 变更统计

类型 数量 说明
➕ 新增 277 上游新增的文档,需要翻译
📝 修改 0 上游修改的文档,可能需要更新翻译
➖ 删除 0 上游删除的文档

➕ 新增文件 (需要翻译)

  • .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
  • ... 还有 262 个文件

📝 修改文件 (检查是否需要更新翻译)

➖ 删除文件

⚠️ 重要提示

  1. 新增文件需要添加中文翻译
  2. 修改文件请对比上游变更,更新相应的翻译
  3. 点击上方的"查看上游变更"链接可以看到具体改了什么
  4. 不要使用 Squash Merge,请使用普通 Merge

📝 翻译检查清单

  • .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 - 添加翻译

  • ... 检查其他文件

Upstream: vitest-dev/vitest@fec5579
Initial sync

Changes from upstream:
- New files: 277
- Modified files: 0
- Deleted files: 0
Copilot AI review requested due to automatic review settings December 9, 2025 15:15
@elonehoo elonehoo added documentation Improvements or additions to documentation sync labels Dec 9, 2025
@netlify
Copy link

netlify bot commented Dec 9, 2025

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit 6ba934c
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/6938ff8310713a00089b56f0
😎 Deploy Preview https://deploy-preview-838--cn-vitest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Copilot AI left a 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.

Comment on lines +28 to +31
function mock(
path: string,
factory?: MockOptions | MockFactory<unknown>
): void
Copy link

Copilot AI Dec 9, 2025

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.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants