@@ -69,13 +69,13 @@ You should call `vi.resetAllMocks()` in your suite's `afterEach` hook to remove
6969
7070[ vitest's mock functions ] : https://vitest.dev/api/mock.html
7171[ stubs ] : https://en.wikipedia.org/wiki/Test_stub
72- [ when ] : #whenspy -tfunc-stubwrappertfunc
73- [ called-with ] : #calledwithargs-targs-stubtargs-treturn
74- [ then-return ] : #thenreturnvalue-treturn
75- [ then-resolve ] : #thenresolvevalue-treturn
76- [ then-throw ] : #thenthrowerror-unknown
77- [ then-reject ] : #thenrejecterror-unknown
78- [ then-do ] : #thendocallback-args-targs--treturn
72+ [ when ] : #whenmock -tfunc-options-whenoptions -stubwrappertfunc
73+ [ called-with ] : #calledwithargs-parameterstfunc-stubtfunc
74+ [ then-return ] : #thenreturnvalue-treturn---mocktfunc
75+ [ then-resolve ] : #thenresolvevalue-treturn---mocktfunc
76+ [ then-throw ] : #thenthrowerror-unknown---mocktfunc
77+ [ then-reject ] : #thenrejecterror-unknown---mocktfunc
78+ [ then-do ] : #thendocallback-args-targs--treturn---mocktfunc
7979
8080### Why not vanilla Vitest mocks?
8181
@@ -374,7 +374,7 @@ expect(() => mock('hello')).toThrow('this is bad')
374374expect (() => mock (' hello' )).toThrow (' this is bad' )
375375```
376376
377- ### ` .thenReject(error: unknown) `
377+ ### ` .thenReject(error: unknown) -> Mock<TFunc> `
378378
379379When the stubbing is satisfied, reject a ` Promise ` with ` error ` .
380380
0 commit comments