Skip to content

Commit 63c27c4

Browse files
authored
docs: show vi.mockObject options (#9215)
1 parent 93e4deb commit 63c27c4

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
@@ -452,7 +452,7 @@ expect(Cart).toHaveBeenCalled()
452452
### vi.mockObject <Version>3.2.0</Version>
453453

454454
```ts
455-
function mockObject<T>(value: T): MaybeMockedDeep<T>
455+
function mockObject<T>(value: T, options?: MockOptions): MaybeMockedDeep<T>
456456
```
457457

458458
Deeply mocks properties and methods of a given object in the same way as `vi.mock()` mocks module exports. See [automocking](/guide/mocking.html#automocking-algorithm) for the detail.

0 commit comments

Comments
 (0)