Skip to content

docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 30df9417#963

Open
docschina-bot wants to merge 5 commits intodevfrom
sync-30df9417-1
Open

docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 30df9417#963
docschina-bot wants to merge 5 commits intodevfrom
sync-30df9417-1

Conversation

@docschina-bot
Copy link
Copy Markdown
Collaborator

此 PR 自动生成。

合并 vitest-dev/docs-cn 的修改至本仓库(@ 30df941

以下文件存在冲突,可能需要重新翻译:

请解决所有冲突后提交到此 pull request,可直接在 Github 修改、切换到 sync-30df9417-1 分支进行修改或者使用 Github Desktop 拉取此 pr 修改并提交。

禁止使用 Squash Merge 来合并此 Pull Request!

使用该操作会导致上游仓库的内容丢失,并致使下一次合并产生冲突。

@docschina-bot docschina-bot requested a review from elonehoo April 21, 2026 23:30
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for cn-vitest failed.

Name Link
🔨 Latest commit eb3262d
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/69e8087c8a3da200087745eb

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb3262d76f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/assert.md
Comment on lines +38 to +41
<<<<<<< HEAD
- **类型:** `<T>(value: T, message?: string) => asserts value`
- **Alias** `ok`
=======
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Resolve leftover merge-conflict markers

This commit leaves raw conflict markers (<<<<<<<, =======, >>>>>>>) in published docs content (for example here, and repeated across many files in the same commit such as api/expect.md, config/sequence.md, and guide/cli.md). That indicates the merge was not actually resolved, so readers will see broken mixed content and any CI checks that enforce clean merges/content can fail. Please pick one side (or a true manual merge) and remove the markers everywhere.

Useful? React with 👍 / 👎.

Comment thread guide/reporters.md
Comment on lines +679 to 682
::: tip Agent Reporter
This reporter is well optimized for AI coding assistants and LLM-based workflows to reduce token usage. It is automatically enabled when no `reporters` option is configured and Vitest detects it is running inside an AI coding agent. If you configure custom reporters, you can explicitly add `minimal` or `agent`:

:::code-group
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Close the new tip container before the next section

A ::: tip Agent Reporter container is opened here, then a nested :::code-group is closed, but the outer tip is never closed before ### Blob 报告器. In VitePress-style markdown containers this can swallow subsequent sections into the tip block and break page structure/rendering. Add a closing ::: for the tip after the code-group block.

Useful? React with 👍 / 👎.

Comment thread guide/snapshot.md
Comment on lines +242 to +243
toMatchTrimmedSnapshot(received: string) {
return toMatchSnapshot.call(this, received.slice(0, 10))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep matcher signature consistent with documented usage

The matcher is changed to toMatchTrimmedSnapshot(received: string) (no length argument), but the same snippet still calls toMatchTrimmedSnapshot(10) later. That makes the example internally inconsistent and can produce TypeScript errors for readers who copy it (extra argument no longer matches the declared matcher API). Either keep the length parameter or update the callsite to match the new signature.

Useful? React with 👍 / 👎.

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.

5 participants