Skip to content

Commit 0765f3e

Browse files
authored
docs: show vi.mockObject options (#835)
1 parent ef4a90c commit 0765f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/vi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ expect(Cart).toHaveBeenCalled()
449449
### vi.mockObject <Version>3.2.0</Version>
450450
451451
```ts
452-
function mockObject<T>(value: T): MaybeMockedDeep<T>
452+
function mockObject<T>(value: T, options?: MockOptions): MaybeMockedDeep<T>
453453
```
454454

455455
它与 `vi.mock()` 模拟模块相同,深层模拟给定对象的属性和方法。详见 [自动模拟](/guide/mocking.html#automocking-algorithm)。

0 commit comments

Comments
 (0)