Skip to content

Commit 28fbd5f

Browse files
committed
docs(cn): update config/onconsolelog.md
1 parent 9aef45f commit 28fbd5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config/onconsolelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function onConsoleLog(
1313
): boolean | void
1414
```
1515

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.
16+
用于自定义处理测试中调用的 `console` 方法。若返回 `false`Vitest 将不会将该日志打印到控制台。Vitest 会忽略除 false 之外的其他假值。
1717

18-
Can be useful for filtering out logs from third-party libraries.
18+
此功能适用于过滤第三方库产生的日志。
1919

2020
```ts
2121
import { defineConfig } from 'vitest/config'

0 commit comments

Comments
 (0)