mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 19:45:48 +08:00
jest: added restoreAllMocks
This commit is contained in:
6
types/jest/index.d.ts
vendored
6
types/jest/index.d.ts
vendored
@@ -62,8 +62,10 @@ declare namespace jest {
|
||||
function resetAllMocks(): typeof jest;
|
||||
/**
|
||||
* available in Jest 20.1.0+
|
||||
* Restores all mocks back to their original value. Equivalent to calling .mockRestore on every mocked function.
|
||||
* Beware that jest.restoreAllMocks() only works when mock was created with jest.spyOn; other mocks will require you to manually restore them.
|
||||
* Restores all mocks back to their original value.
|
||||
* Equivalent to calling .mockRestore on every mocked function.
|
||||
* Beware that jest.restoreAllMocks() only works when mock was created with
|
||||
* jest.spyOn; other mocks will require you to manually restore them.
|
||||
*/
|
||||
function restoreAllMocks(): typeof jest;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user