-
-
Notifications
You must be signed in to change notification settings - Fork 111
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ ab4222a4 #951
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
733ac00
9f01835
ab4222a
de70c1b
84c7bf5
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 |
|---|---|---|
|
|
@@ -429,6 +429,13 @@ Directory of HTML coverage output to be served in UI mode and HTML reporter. | |
|
|
||
| 启用追踪视图模式。 可选项: "on", "off", "on-first-retry", "on-all-retries", "retain-on-failure" | ||
|
|
||
| ### browser.locators.exact | ||
|
|
||
| - **CLI:** `--browser.locators.exact` | ||
| - **Config:** [browser.locators.exact](/config/browser/locators#locators-exact) | ||
|
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 new CLI docs link points to Useful? React with 👍 / 👎. |
||
|
|
||
| Should locators match the text exactly by default (default: `false`) | ||
|
|
||
| ### pool | ||
|
|
||
| - **命令行终端:** `--pool <pool>` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,7 +53,28 @@ npx vite preview --outDir ./html | |
| 你可以使用 [`outputFile`](/config/outputfile) 配置选项配置输出。你需要在那里指定 `.html` 路径。例如,`./html/index.html` 是默认值。 | ||
| ::: | ||
|
|
||
| <<<<<<< 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 UI guide still contains unresolved conflict markers around the module-graph section, so users will see merge artifacts in the rendered docs and any conflict-marker checks in docs CI can fail. This should be resolved before merging so only the chosen content remains. Useful? React with 👍 / 👎. |
||
| ## 模块图 {#module-graph} | ||
| ======= | ||
| ::: tip | ||
| To view the HTML report from CI, for example in GitHub Actions, upload the output directory as an artifact: | ||
|
|
||
| ```yaml | ||
| - uses: actions/upload-artifact@v4 | ||
| id: upload-report | ||
| with: | ||
| name: vitest-report | ||
| path: html/ | ||
|
|
||
| - name: Viewer link in summary | ||
| run: echo "[View HTML report](https://viewer.vitest.dev/?url=${{ steps.upload-report.outputs.artifact-url }})" >> $GITHUB_STEP_SUMMARY | ||
| ``` | ||
|
|
||
| This adds a link to the job summary. Click it to open the report in [Vitest Viewer](https://viewer.vitest.dev/) directly in the browser. You can also download the artifact manually and extract it, then run `vite preview` locally as above. | ||
| ::: | ||
|
|
||
| ## Module Graph | ||
| >>>>>>> ab4222a4c4bd8d175537000fb1b0f6b7334065c3 | ||
|
|
||
| 模块图选项卡显示所选测试文件的模块图。 | ||
|
|
||
|
|
||
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 commit leaves raw merge-conflict markers (
<<<<<<<,=======,>>>>>>>) in the published markdown, which indicates the merge was not completed and will surface broken content to readers; many doc pipelines also fail CI when these markers are present. Please resolve the conflict and keep only the intended final text for this section.Useful? React with 👍 / 👎.