You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When `true`, each file is checked against the top-level thresholds instead of the project-wide aggregate. When set to an object, both are checked: the aggregate against the top-level thresholds, and every file against these per-file minimums.
250
242
251
243
<!-- eslint-skip -->
@@ -302,7 +294,6 @@ When `true`, each file is checked against the top-level thresholds instead of th
302
294
}
303
295
}
304
296
```
305
-
>>>>>>> 89a0dbd2c3f2002cd2061b660fc7d0bd480e98eb
306
297
307
298
### coverage.thresholds.autoUpdate
308
299
@@ -313,20 +304,14 @@ When `true`, each file is checked against the top-level thresholds instead of th
Each glob pattern can set its own `perFile` (`boolean | object`), checked exactly like the top-level `perFile` but scoped to the matched files. Glob patterns do not inherit the top-level `perFile` — set it per glob.
366
347
367
-
<<<<<<< HEAD
368
348
::: tip 注意
369
349
Vitest 会将所有文件(包括匹配 glob 模式的文件)计入全局覆盖率阈值计算。
370
350
此做法与 Jest 不同。
371
-
=======
372
-
Each glob pattern can set its own `perFile` (`boolean | object`), checked exactly like the top-level `perFile` but scoped to the matched files. Glob patterns do not inherit the top-level `perFile` — set it per glob.
373
-
374
-
::: tip NOTE
375
-
Vitest counts all files, including those covered by glob-patterns, into the global coverage thresholds.
Check thresholds per file. See `--coverage.thresholds.lines`, `--coverage.thresholds.functions`, `--coverage.thresholds.branches` and `--coverage.thresholds.statements` for the actual thresholds (default: `false`). Object form is available in config files only.
210
-
>>>>>>> 89a0dbd2c3f2002cd2061b660fc7d0bd480e98eb
202
+
<!-- TODO: translation -->
203
+
检查每个文件的阈值。 `--coverage.thresholds.lines`, `--coverage.thresholds.functions`, `--coverage.thresholds.branches`, `--coverage.thresholds.statements` 为实际阈值(默认值:`false`)。Object form is available in config files only.
0 commit comments