diff --git a/types/index.d.ts b/types/index.d.ts index de45f8c2..bcb598cf 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -132,7 +132,7 @@ declare namespace jest { * * @param {Mock} mock */ - toHaveBeenCalledBefore(mock: jest.Mock): R; + toHaveBeenCalledBefore(mock: jest.MockInstance): R; /** * Use `.toHaveBeenCalledAfter` when checking if a `Mock` was called after another `Mock`. @@ -141,7 +141,7 @@ declare namespace jest { * * @param {Mock} mock */ - toHaveBeenCalledAfter(mock: jest.Mock): R; + toHaveBeenCalledAfter(mock: jest.MockInstance): R; /** * Use `.toBeNumber` when checking if a value is a `Number`. @@ -488,7 +488,7 @@ declare namespace jest { * * @param {Mock} mock */ - toHaveBeenCalledBefore(mock: jest.Mock): any; + toHaveBeenCalledBefore(mock: jest.MockInstance): any; /** * Use `.toHaveBeenCalledAfter` when checking if a `Mock` was called after another `Mock`. @@ -497,7 +497,7 @@ declare namespace jest { * * @param {Mock} mock */ - toHaveBeenCalledAfter(mock: jest.Mock): any; + toHaveBeenCalledAfter(mock: jest.MockInstance): any; /** * Use `.toBeNumber` when checking if a value is a `Number`.