Skip to content

Commit fec5579

Browse files
authored
docs: show vi.mockObject options (#9215)
1 parent 372e86f commit fec5579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/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)