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.
1 parent 54ec728 commit 463b301Copy full SHA for 463b301
1 file changed
api/vi.md
@@ -363,7 +363,7 @@ test('operations are resolved', async () => {
363
该方法还将在导入解析后等待下一个 `setTimeout` 跟他挂钩,因此所有同步操作都应在解析时完成。
364
:::
365
366
-## 模拟函数和对象
+## 模拟函数和对象 {#mocking-functions-and-objects}
367
368
本节介绍如何使用 [method mock](/api/mock) 替换环境变量和全局变量。
369
@@ -1059,12 +1059,12 @@ vi.setConfig({
1059
restoreMocks: true,
1060
fakeTimers: {
1061
now: new Date(2021, 11, 19),
1062
- // supports the whole object
+ // 支持完整对象
1063
},
1064
maxConcurrency: 10,
1065
sequence: {
1066
hooks: 'stack',
1067
- // supports only "sequence.hooks"
+ // 仅支持 "sequence.hooks"
1068
1069
})
1070
```
0 commit comments