Merge pull request #23876 from a-xin/patch-1

[jest] update jest.clearAllMocks() description and remove @deprecated
This commit is contained in:
Benjamin Lichtman
2018-02-28 12:18:03 -08:00
committed by GitHub
+2 -1
View File
@@ -56,7 +56,8 @@ declare namespace jest {
*/
function autoMockOn(): typeof jest;
/**
* @deprecated use resetAllMocks instead
* Clears the mock.calls and mock.instances properties of all mocks.
* Equivalent to calling .mockClear() on every mocked function.
*/
function clearAllMocks(): typeof jest;
/**