We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7f1feb + 520e08f commit d0dca39Copy full SHA for d0dca39
guide/in-source.md
@@ -9,6 +9,7 @@ Vitest 还提供了一种方式,可以运行与你的代码实现放在一起
9
这允许测试与实现共享相同的闭包,并且能够在不导出的情况下针对私有状态进行测试。同时,它也使开发更加接近反馈循环。
10
11
## 指引 {#setup}
12
+
13
::: warning
14
本指南介绍如何在源代码中编写测试。如果需要在单独的测试文件中编写测试,请参阅["编写测试"指南](/guide/#writing-tests)。
15
:::
guide/test-context.md
@@ -191,7 +191,7 @@ export const test = todosTest.extend({
191
})
192
```
193
194
-#### 固定装置初始化
+#### 固定装置初始化 {#fixture-initialization}
195
196
Vitest 运行器将智能地初始化你的固定装置并根据使用情况将它们注入到测试上下文中。
197
0 commit comments