From 495e67aa5b4b2b2a72c720eecda29e7a5bb98a8e Mon Sep 17 00:00:00 2001
From: WuMingDao <146366930+WuMingDao@users.noreply.github.com>
Date: Sat, 1 Nov 2025 12:35:37 +0800
Subject: [PATCH 1/2] docs(/advanced/api/test-specification): Add translate
---
advanced/api/test-specification.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/advanced/api/test-specification.md b/advanced/api/test-specification.md
index 60e6c766..d3bcc5dd 100644
--- a/advanced/api/test-specification.md
+++ b/advanced/api/test-specification.md
@@ -7,7 +7,7 @@
```ts
const specification = project.createSpecification(
resolve('./example.test.ts'),
- [20, 40], // optional test lines
+ [20, 40], // 可选测试行
)
```
@@ -15,7 +15,7 @@ const specification = project.createSpecification(
## taskId
-[Test module's](/advanced/api/test-suite#id) identifier.
+[测试模块的](/advanced/api/test-suite#id) 标识符。
## project
@@ -33,7 +33,7 @@ Vite 模块图中的模块 ID。通常,它是一个使用 POSIX 分隔符的
## testModule
-Instance of [`TestModule`](/advanced/api/test-module) associated with the specification. If test wasn't queued yet, this will be `undefined`.
+与规范相关联的 [`TestModule`](/advanced/api/test-module) 实例。如果测试尚未排队,则将是 `undefined`。
## pool experimental {#pool}
From d7a2fc634ae162f4c64191c40477ad80598e51d0 Mon Sep 17 00:00:00 2001
From: thinkasany <480968828@qq.com>
Date: Sat, 1 Nov 2025 14:12:34 +0800
Subject: [PATCH 2/2] Update advanced/api/test-specification.md
---
advanced/api/test-specification.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/advanced/api/test-specification.md b/advanced/api/test-specification.md
index d3bcc5dd..88413a83 100644
--- a/advanced/api/test-specification.md
+++ b/advanced/api/test-specification.md
@@ -33,7 +33,7 @@ Vite 模块图中的模块 ID。通常,它是一个使用 POSIX 分隔符的
## testModule
-与规范相关联的 [`TestModule`](/advanced/api/test-module) 实例。如果测试尚未排队,则将是 `undefined`。
+与规范相关联的 [`TestModule`](/advanced/api/test-module) 实例。如果测试还未加入队列,则将是 `undefined`。
## pool experimental {#pool}