Skip to content

Commit 6c86cf9

Browse files
authored
docs: update coverage.include (#591)
1 parent 6ce8102 commit 6c86cf9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

website/docs/en/config/test/coverage.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
type CoverageOptions = {
77
enabled?: boolean;
88
provider?: 'istanbul';
9+
include?: string[];
910
exclude?: string[];
1011
reporters?: (keyof ReportOptions | ReportWithOptions)[];
1112
reportsDirectory?: string;

website/docs/zh/config/test/coverage.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
type CoverageOptions = {
77
enabled?: boolean;
88
provider?: 'istanbul';
9+
include?: string[];
910
exclude?: string[];
1011
reporters?: (keyof ReportOptions | ReportWithOptions)[];
1112
reportsDirectory?: string;
@@ -98,7 +99,7 @@ import { PackageManagerTabs } from '@theme';
9899

99100
对匹配 glob 规则的文件进行测试覆盖率收集。
100101

101-
默认情况下,rstest 会收集已测试文件的覆盖率。如果你希望在覆盖率报告中包含未测试的文件,可以使用 `include` 选项指定要包含的文件或模式。
102+
默认情况下,Rstest 会收集已测试文件的覆盖率。如果你希望在覆盖率报告中包含未测试的文件,可以使用 `include` 选项指定要包含的文件或模式。
102103

103104
```ts title='rstest.config.ts'
104105
import { defineConfig } from '@rstest/core';

0 commit comments

Comments
 (0)