We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aef45f commit 28fbd5fCopy full SHA for 28fbd5f
1 file changed
config/onconsolelog.md
@@ -13,9 +13,9 @@ function onConsoleLog(
13
): boolean | void
14
```
15
16
-Custom handler for `console` methods in tests. If you return `false`, Vitest will not print the log to the console. Note that Vitest ignores all other falsy values.
+用于自定义处理测试中调用的 `console` 方法。若返回 `false`,Vitest 将不会将该日志打印到控制台。Vitest 会忽略除 false 之外的其他假值。
17
18
-Can be useful for filtering out logs from third-party libraries.
+此功能适用于过滤第三方库产生的日志。
19
20
```ts
21
import { defineConfig } from 'vitest/config'
0 commit comments