Skip to content

Conversation

@zero-years
Copy link
Contributor

在提交PR之前,请确保您执行以下操作:

  • 曾阅读过翻译须知
  • 检查是否已经有PR以同样的方式解决问题,以避免创建重复。
  • 在此PR中描述正在解决的问题,或引用它解决的问题(例如:fixes #123)。

描述

修改了 guide/cli 和 guide/cli-generated 中的错误翻译以及将全文句末的句号去除

附加上下文

@netlify
Copy link

netlify bot commented Dec 6, 2025

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit 3cf96a2
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/6933aa63b1977400084aba52
😎 Deploy Preview https://deploy-preview-825--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.

@thinkasany thinkasany merged commit a24fdf7 into vitest-dev:dev Dec 6, 2025
5 checks passed
将仅运行路径中包含 `foobar` 的测试文件。 此过滤器仅检查包含,不支持正则表达式或 glob 模式(除非你的终端在 Vitest 接收过滤器之前对其进行处理)。

从 Vitest 3 开始,您还可以通过文件名和行号指定测试
自 vitest 3 起,你还可以通过文件名和行号指定测试
Copy link
Collaborator

Choose a reason for hiding this comment

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

运行指定测试

- **命令行终端:** `--diff.omitAnnotationLines`
- **配置:** [diff.omitAnnotationLines](/config/#diff-omitannotationlines)

省略输出中的注释 (默认值: `false`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

注释行

- **命令行终端:** `--diff.maxDepth <maxDepth>`
- **配置:** [diff.maxDepth](/config/#diff-maxdepth)

嵌套对象打印的最深深度 (默认值: `20`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

打印嵌套对象时,最大递归深度 (默认值: 20)

- **命令行终端:** `--diff.emptyFirstOrLastLinePlaceholder <placeholder>`
- **配置:** [diff.emptyFirstOrLastLinePlaceholder](/config/#diff-emptyfirstorlastlineplaceholder)

空的第一行或最后一行的占位符 (默认值: `""`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

空首行或空末行的占位符 (默认值: "")

- **命令行终端:** `--diff.contextLines <lines>`
- **配置:** [diff.contextLines](/config/#diff-contextlines)

每次更改内容上下显示的上下文行数 (默认值: `5`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

每次变更显示上下文行数 (默认值: 5

- **配置:** [browser.trace](/guide/browser/config#browser-trace)

开启追踪视图模式。 可选项: "on", "off", "on-first-retry", "on-all-retries", "retain-on-failure"
开启追踪视图模式。 可选项: "on", "off", "on-first-retry", "on-all-retries", "retain-on-failure"
Copy link
Collaborator

Choose a reason for hiding this comment

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

开启 变更为 启用

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.

3 participants