-
-
Notifications
You must be signed in to change notification settings - Fork 111
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ ea5391c0 #974
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
Changes from 4 commits
1fad5fa
7df7a65
ea5391c
9b9d74f
4853352
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,15 @@ | |
| outline: deep | ||
| --- | ||
|
|
||
| # attachmentsDir | ||
| # attachmentsDir <CRoot /> | ||
|
|
||
| - **类型:** `string` | ||
| - **默认值:** `'.vitest/attachments'` | ||
|
|
||
| <<<<<<< HEAD | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The conflict marker block indicates an incomplete merge in this config page, so users will see raw conflict syntax and conflicting language variants instead of a single authoritative description. This is a correctness issue for published documentation and should be resolved before release. Useful? React with 👍 / 👎. |
||
| 用于存储 [`context.annotate`](/guide/test-context#annotate) 所创建附件的目录路径(相对于项目根目录)。 | ||
| ======= | ||
| Directory path for storing file attachments created by [`context.annotate`](/guide/test-context#annotate). | ||
|
|
||
| This option is resolved relative to the root Vitest config. When using [`projects`](/guide/projects), all projects share the same `attachmentsDir`; it cannot be configured per project. | ||
| >>>>>>> ea5391c0ee318d8eb6cd0fc7ea237d854171fbc2 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -286,10 +286,18 @@ export default defineConfig({ | |
| ::: danger 不支持的选项 | ||
| 部分配置选项不允许在项目配置中使用,主要包括: | ||
|
|
||
| <<<<<<< HEAD | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
An unresolved conflict block remains in the “unsupported options” section, leaving two contradictory list variants in the source. This causes end-user documentation corruption and makes it unclear which options are actually unsupported in project-level config. Useful? React with 👍 / 👎. |
||
| - `coverage`:覆盖率统计针对整个进程 | ||
| - `reporters`:只支持根级别的 reporters | ||
| - `resolveSnapshotPath`:只尊重根级别的快照路径解析器 | ||
| - 其他不影响测试运行器的选项 | ||
| ======= | ||
| - `coverage`: coverage is done for the whole process | ||
| - `reporters`: only root-level reporters can be supported | ||
| - `resolveSnapshotPath`: only root-level resolver is respected | ||
| - `attachmentsDir`: attachments are stored in one root-level directory shared by all projects | ||
| - all other options that don't affect test runners | ||
| >>>>>>> ea5391c0ee318d8eb6cd0fc7ea237d854171fbc2 | ||
|
|
||
| 所有不支持在项目配置中使用的配置选项,在 ["配置"](/config/) 指南中会用 <CRoot /> 标记。它们必须在根配置文件中定义一次。 | ||
| ::: | ||
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.
This file still contains Git conflict markers (
<<<<<<<,=======,>>>>>>>), which means the merge was not resolved and both variants are published verbatim. In rendered docs this shows broken content structure and duplicate section intent, and in doc-processing pipelines it can also break tooling that assumes clean Markdown.Useful? React with 👍 / 👎.