Skip to content

Conversation

@NoiseFan
Copy link
Collaborator

@NoiseFan NoiseFan commented Nov 3, 2025

@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit dbf4f37
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/69086fd62ea34000084a8e76
😎 Deploy Preview https://deploy-preview-769--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.

@NoiseFan NoiseFan marked this pull request as ready for review November 3, 2025 08:32
@NoiseFan NoiseFan mentioned this pull request Nov 3, 2025
4 tasks
@NoiseFan
Copy link
Collaborator Author

NoiseFan commented Nov 3, 2025

这个pr合并完毕,建议和主文档进行一次合并。

@thinkasany thinkasany requested a review from Copilot November 3, 2025 16:21
@thinkasany
Copy link
Collaborator

@coderabbitai 兔子 检查一下这个 pr

@thinkasany thinkasany merged commit d22486b into vitest-dev:dev Nov 3, 2025
10 checks passed
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 adds anchor links (fragment identifiers) to section headings throughout Chinese documentation files for improved navigation and deep linking capabilities. It also fixes a broken link reference in the VitePress configuration file (changing trace-viewer to trace-view).

  • Added anchor links to hundreds of section headings using the {#anchor-name} syntax
  • Fixed a broken link in .vitepress/config.ts from trace-viewer to trace-view
  • Applied consistent anchor naming patterns across all documentation files

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
guide/snapshot.md Added anchor links to 4 subsection headings about Jest compatibility differences
guide/mocking.md Added anchor links to main heading and multiple subsection headings for mocking cheat sheet
guide/migration.md Added anchor links to migration guide sections covering Vitest 4.0 changes and Jest migration
guide/improving-performance.md Added anchor links to performance optimization sections
guide/coverage.md Added anchor link to examples section
guide/comparisons.md Added anchor link to main comparison heading
guide/browser/why.md Added anchor links to browser mode motivation and drawbacks sections
guide/browser/webdriverio.md Added anchor link to main WebdriverIO configuration heading
guide/browser/visual-regression-testing.md Added anchor links to all sections covering visual regression testing setup and best practices
guide/browser/trace-view.md Changed main heading from "Trace Viewer" to "Trace View" for consistency
guide/browser/playwright.md Added anchor link to main Playwright configuration heading
guide/browser/multiple-setups.md Added anchor links to sections about browser setup configurations
guide/browser/locators.md Added anchor link to main locators heading
guide/browser/index.md Added anchor links to installation, configuration, and limitations sections
guide/browser/context.md Added anchor link to context API heading
guide/browser/config.md Added anchor link to browser config reference heading
guide/browser/component-testing.md Added anchor links to all component testing sections and subsections
guide/browser/commands.md Added anchor links to built-in commands and custom commands sections
guide/browser/assertion-api.md Added anchor link to toMatchScreenshot section
config/index.md Added anchor link to main configuration heading
blog.md Added anchor link to blog heading
api/index.md Added anchor link to Test API reference heading
advanced/runner.md Added anchor links to runner API sections
advanced/reporters.md Added anchor links to reporter extension sections
advanced/metadata.md Added anchor link to task metadata heading
advanced/api/vitest.md Added anchor links to experimental API sections
advanced/api/reporters.md Added anchor link to reporters heading
advanced/api/index.md Added anchor link to getting started section
.vitepress/config.ts Fixed broken link from trace-viewer to trace-view

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

:::

### 对模块中导出的函数进行 mock。
### 对模块中导出的函数进行 mock。{#mock-an-exported-function}
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space before the anchor link. The pattern should be '### 对模块中导出的函数进行 mock。 {#mock-an-exported-function}' with a space between the period and the opening brace, consistent with other headings in the file.

Copilot uses AI. Check for mistakes.
Vitest为多个框架提供全面的组件测试支持,包括Vue、React、Svelte、Lit、Preact、Qwik、Solid、Marko等。本指南涵盖了使用Vitest有效测试组件的特定模式、工具和最佳实践。

## 为什么进行组件测试?
## 为什么进行组件测试?{#why-component-testing}
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space before the anchor link. The pattern should be '## 为什么进行组件测试? {#why-component-testing}' with a space between the question mark and the opening brace, consistent with the spacing pattern used throughout the PR.

Copilot uses AI. Check for mistakes.
Vitest中的组件测试使用**浏览器模式**在真实浏览器环境中运行测试,支持使用Playwright、WebdriverIO或预览模式。这提供了最准确的测试环境,因为你的组件在真实浏览器中运行,具有实际的DOM实现、CSS渲染和浏览器API。

### 为什么使用浏览器模式?
### 为什么使用浏览器模式?{#why-browser-mode}
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space before the anchor link. The pattern should be '### 为什么使用浏览器模式? {#why-browser-mode}' with a space between the question mark and the opening brace, consistent with the spacing pattern used throughout the PR.

Copilot uses AI. Check for mistakes.
@thinkasany
Copy link
Collaborator

可以看看 copilot 检查的对不对

@NoiseFan NoiseFan mentioned this pull request Nov 5, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants