Conversation
* feat: add `experimental.preParse` flag (#10070) * feat(coverage): default to text reporter `skipFull` if agent detected (#10018) * docs: document browser mode auto cleanup behavior (#10045) Co-authored-by: Codex <noreply@openai.com> * feat(experimental): expose `assertion` as a public field (#10095) * docs: add "Learn" section (#10092) * docs(cn): dissolve the conflict * [autofix.ci] apply automated fixes --------- Co-authored-by: Vladimir <sleuths.slews0s@icloud.com> Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com> Co-authored-by: Codex <noreply@openai.com> Co-authored-by: noise <noisefan@163.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 5755951
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 1df9a43
…o sync-2c317bd5-1
…o sync-e7c76dee-1
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 12702e8
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Codex <noreply@openai.com>
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ ec964f3
…oncurrent: false })` + depreacte `sequential` test API and options (#10194) Co-authored-by: Codex <noreply@openai.com> Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
* docs(cn): complement the missing translation * docs(cn): update /guide/ * docs(cn): update /guide/ * docs(cn): fix typo * docs(cn): update /config/ * docs(cn): update /api/
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…y header (#10887)
…ile as `toMatchSnapshot` (#10978) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode <noreply@opencode.ai> Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ a41164c
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Raul Macarie <raul@macarie.me>
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 752f075
* docs(cn): update guide/snapshot.md * docs(cn): update guide/benchmarking.md * docs(cn): update guide/cli-generated.md * docs(cn): update guide/environment.md * docs(cn): update guide/reporters.md * docs(cn): update guide/cli.md * docs(cn): update guide/projects.md * docs(cn): update guide/common-errors.md * docs(cn): update guide/improving-performance.md * docs(cn): update guide/migration/jest.md * docs(cn): update guide/migration/mocha.md * docs(cn): update guide/projects.md
✅ Deploy Preview for cn-vitest ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1848df35d6
ℹ️ 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".
| outline: deep | ||
| --- | ||
|
|
||
| # detectAsyncLeaks |
There was a problem hiding this comment.
Register detectAsyncLeaks in the config sidebar
This new configuration page has no entry in the /config sidebar in .vitepress/config.ts, so users browsing the configuration reference cannot discover it through site navigation. Add a sidebar entry linking to /config/detectasyncleaks.
AGENTS.md reference: AGENTS.md:L18-L18
Useful? React with 👍 / 👎.
| outline: deep | ||
| --- | ||
|
|
||
| # taskTitleValueFormatTruncate <CRoot /> {#tasktitlevalueformattruncate} |
There was a problem hiding this comment.
Register taskTitleValueFormatTruncate in the sidebar
This new configuration page is absent from the hand-maintained /config sidebar, leaving it discoverable only through direct links such as the one in the Test API. Add a sidebar entry for /config/tasktitlevalueformattruncate.
AGENTS.md reference: AGENTS.md:L18-L18
Useful? React with 👍 / 👎.
| outline: deep | ||
| --- | ||
|
|
||
| # browser.traceView <Badge type="warning" text="Experimental" /> <Version>5.0.0</Version> |
There was a problem hiding this comment.
Register browser.traceView in the browser config sidebar
Although this page is generated and linked from the CLI reference, the Browser Mode section of the /config sidebar has no /config/browser/traceview entry, so readers browsing browser options will not see it. Add the new page alongside the other browser.* options.
AGENTS.md reference: AGENTS.md:L18-L18
Useful? React with 👍 / 👎.
| outline: deep | ||
| --- | ||
|
|
||
| # browser.traceView <Badge type="warning" text="Experimental" /> <Version>5.0.0</Version> |
There was a problem hiding this comment.
Use the standard experimental markers for traceView
The heading manually renders an experimental badge while marking 5.0.0 with the ordinary Version component, which bypasses the repository's standard experimental semantics and presentation. Use <Version type="experimental">5.0.0</Version> together with <Experimental />.
AGENTS.md reference: AGENTS.md:L20-L20
Useful? React with 👍 / 👎.
| if (url.pathname === '/api/' || url.pathname === '/api' || url.pathname === '/api/index.html') { | ||
| return '/api/test' |
There was a problem hiding this comment.
Preserve legacy API anchors when redirecting
When a bookmarked or external link targets the former monolithic API page, such as /api/#describe or /api/#beforeeach, this branch redirects every request to /api/test and discards the hash. Since those sections now live under /api/describe and /api/hooks, these legacy deep links land on the wrong page; inspect and map the hash before returning the redirect.
Useful? React with 👍 / 👎.
|
|
||
| # Releases | ||
|
|
||
| Vitest releases follow [Semantic Versioning](https://semver.org/). You can see the latest stable version of Vitest in the [Vitest npm package page](https://www.npmjs.com/package/vite). |
| ] | ||
| </script> | ||
|
|
There was a problem hiding this comment.
Avoid random state during SSR hydration
When VitePress renders this component on the server, the server and browser independently call Math.random(), so they choose different phases in roughly seven out of eight hydrations. This produces a Vue hydration mismatch and can visibly replace the emoji after load; derive the value deterministically or select it only after mounting.
Useful? React with 👍 / 👎.
在提交PR之前,请确保你执行以下操作:
fixes #123)。描述
附加上下文