Skip to content

Commit e62a246

Browse files
authored
Merge pull request #755 from WuMingDao/patch-8
docs(/advanced/api/test-specification): Add translate
2 parents 10b3e17 + d7a2fc6 commit e62a246

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

advanced/api/test-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
```ts
88
const specification = project.createSpecification(
99
resolve('./example.test.ts'),
10-
[20, 40], // optional test lines
10+
[20, 40], // 可选测试行
1111
)
1212
```
1313

1414
`createSpecification` 期望一个已解析的模块 ID。它不会自动解析文件或检查文件是否存在于文件系统中。
1515

1616
## taskId
1717

18-
[Test module's](/advanced/api/test-suite#id) identifier.
18+
[测试模块的](/advanced/api/test-suite#id) 标识符。
1919

2020
## project
2121

@@ -33,7 +33,7 @@ Vite 模块图中的模块 ID。通常,它是一个使用 POSIX 分隔符的
3333

3434
## testModule
3535

36-
Instance of [`TestModule`](/advanced/api/test-module) associated with the specification. If test wasn't queued yet, this will be `undefined`.
36+
与规范相关联的 [`TestModule`](/advanced/api/test-module) 实例。如果测试还未加入队列,则将是 `undefined`
3737

3838
## pool <Badge type="warning">experimental</Badge> {#pool}
3939

0 commit comments

Comments
 (0)