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 ef4a90c commit 0765f3eCopy full SHA for 0765f3e
api/vi.md
@@ -449,7 +449,7 @@ expect(Cart).toHaveBeenCalled()
449
### vi.mockObject <Version>3.2.0</Version>
450
451
```ts
452
-function mockObject<T>(value: T): MaybeMockedDeep<T>
+function mockObject<T>(value: T, options?: MockOptions): MaybeMockedDeep<T>
453
```
454
455
它与 `vi.mock()` 模拟模块相同,深层模拟给定对象的属性和方法。详见 [自动模拟](/guide/mocking.html#automocking-algorithm)。
0 commit comments