From dc796393f23d67401f8dfa60156efdd1cd7b4786 Mon Sep 17 00:00:00 2001 From: noise Date: Sat, 23 May 2026 20:09:09 +0800 Subject: [PATCH 1/3] docs(cn): update config/disableconsoleintercept.md --- config/disableconsoleintercept.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/disableconsoleintercept.md b/config/disableconsoleintercept.md index ff805c8a..8380bb1a 100644 --- a/config/disableconsoleintercept.md +++ b/config/disableconsoleintercept.md @@ -8,9 +8,9 @@ outline: deep - **类型:** `boolean` - **命令行终端:** `--disableConsoleIntercept` - **默认值:** `false` - -By default, Vitest intercepts console output during tests to add context such as the test file and test title. -In [browser mode](/guide/browser/), this interception is required to forward logs from the browser DevTools to the terminal. It is also required for console log previews in the Vitest UI. +测试文件和测试标题之类的上下文信息。 -Disabling console interception can be useful when you want to debug code with normal synchronous terminal logging. +在 [浏览器测试](/guide/browser/) 必须启用这种拦截机制,才能将浏览器开发者工具中的日志转发到终端。 + +适用于你想禁用控制台拦截,并以正常的同步终端日志记录的形式来调试代码的场景。 From a1d9ebb6ca966e615e4cfd9c66f68ed004f59403 Mon Sep 17 00:00:00 2001 From: noise Date: Sun, 24 May 2026 00:24:19 +0800 Subject: [PATCH 2/3] fix: ci error --- .github/workflows/autofix.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 64eab75a..e6e8d01d 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -11,10 +11,10 @@ jobs: timeout-minutes: 10 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Use Node.js lts/* - uses: actions/setup-node@v4 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: lts/* From 839cfc4346c195ff736f9553041b55c7e6d0375c Mon Sep 17 00:00:00 2001 From: noise Date: Sun, 24 May 2026 00:27:54 +0800 Subject: [PATCH 3/3] docs(cn): update config/disableconsoleintercept.md --- config/disableconsoleintercept.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/disableconsoleintercept.md b/config/disableconsoleintercept.md index 8380bb1a..3909c441 100644 --- a/config/disableconsoleintercept.md +++ b/config/disableconsoleintercept.md @@ -9,8 +9,8 @@ outline: deep - **命令行终端:** `--disableConsoleIntercept` - **默认值:** `false` -测试文件和测试标题之类的上下文信息。 +默认情况下,Vitest 会在测试期间自动拦截控制台日志,在拦截过程中添加测试文件和测试标题之类的上下文信息。 在 [浏览器测试](/guide/browser/) 必须启用这种拦截机制,才能将浏览器开发者工具中的日志转发到终端。 -适用于你想禁用控制台拦截,并以正常的同步终端日志记录的形式来调试代码的场景。 +禁用控制台拦截适用于正常的同步终端日志记录的形式来调试代码的场景。