File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77``` ts
88const 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
You can’t perform that action at this time.
0 commit comments